mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
Using Rails.env is not the right approach here
All Cucumber stories now passing
This commit is contained in:
parent
1e4d250a15
commit
05cbea50aa
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ Then /the badge should show (.*)/ do |number|
|
|||
badge = -1
|
||||
xpath= "//span[@id='badge_count']"
|
||||
|
||||
if Rails.env == 'selenium'
|
||||
if response.respond_to? :selenium
|
||||
response.should have_xpath(xpath)
|
||||
badge = response.selenium.get_text("xpath=#{xpath}").to_i
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue