tests/features/step_definitions/culerity_steps.rb in ruby-station-0.1.4 vs tests/features/step_definitions/culerity_steps.rb in ruby-station-0.1.5

- old
+ new

@@ -65,13 +65,18 @@ When /I choose '(.*)'/ do |field| $browser.radio(:id, find_label(field).for).set(true) end -When /I visit the (.+) page/ do |name| - path = case name - when 'index' then '/' - else raise "unknown page name: #{name}" +When /I visit the (.+) page(?: of '(.*) (.*)')?/ do |page, name, version| + path = case page + when 'index' + '/' + when 'uninstall' + id = Application.first(:name => name, :version => version).id + "/applications/uninstall/#{id}" + else + raise "unknown page name: #{page}" end $browser.goto "#{@host}#{path}" assert_successful_response end