From 26cce2dce32adc641537ff5cfb115482d42f66f3 Mon Sep 17 00:00:00 2001 From: John Ferguson Smart Date: Thu, 12 Feb 2015 15:47:19 +1100 Subject: [PATCH] Made a test cross-platform --- .../WhenStoringAndRetrievingDriverCapabilities.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/groovy/net/serenitybdd/core/buildinfo/WhenStoringAndRetrievingDriverCapabilities.groovy b/core/src/test/groovy/net/serenitybdd/core/buildinfo/WhenStoringAndRetrievingDriverCapabilities.groovy index 598311c1f9..154aa6ac1f 100644 --- a/core/src/test/groovy/net/serenitybdd/core/buildinfo/WhenStoringAndRetrievingDriverCapabilities.groovy +++ b/core/src/test/groovy/net/serenitybdd/core/buildinfo/WhenStoringAndRetrievingDriverCapabilities.groovy @@ -26,7 +26,7 @@ class WhenStoringAndRetrievingDriverCapabilities extends Specification { driverCapabilityRecord.registerCapabilities("htmlUnit", DesiredCapabilities.htmlUnit()); driverCapabilityRecord.registerCapabilities("firefox", DesiredCapabilities.firefox()); then: - outputDirectory.list() == ["browser-firefox.properties","browser-htmlunit.properties"] + outputDirectory.list().sort() == ["browser-firefox.properties","browser-htmlunit.properties"] } def "should read driver capabilities from stored properties files"() { @@ -39,7 +39,7 @@ class WhenStoringAndRetrievingDriverCapabilities extends Specification { def drivers = driverCapabilityRecord.drivers def capabilities = driverCapabilityRecord.driverCapabilities then: - drivers == ["firefox","htmlunit"] + drivers.sort() == ["firefox","htmlunit"] and: capabilities["firefox"].getProperty("browserName") == "firefox" capabilities["htmlunit"].getProperty("browserName") == "htmlunit"