Skip to content

Commit

Permalink
Made a test cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Feb 12, 2015
1 parent fe1ab3e commit 26cce2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"() {
Expand All @@ -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"
Expand Down

0 comments on commit 26cce2d

Please sign in to comment.