i fixed this error by moving the @browser = to the given I'm on the Google 
search home page step. 

Now my tests are running, but it's failing on the last step. I'm getting an 
argument error: 

My code  

Then /^I should see "Delicious"$/ do |results|
  @browser.text.should include "Delicious"
end

Feature: Google Search
  In order to find out more about the delicious relaunch failure
  I need to be able to search google

  Scenario:                                      # 
features\google_search.feature:
5
    Google Search for delicious relaunch failure
    Given I am on the Google Search Home Page    # 
features/step_definitions/googl
e_search.rb:6
    When I search for delicious relaunch failure # 
features/step_definitions/googl
e_search.rb:11
    Then I should see "Delicious"                # 
features/step_definitions/googl
e_search.rb:16
      Your block takes 1 argument, but the Regexp matched 0 arguments. 
(Cucumber::
ArityMismatchError)
      features/step_definitions/google_search.rb:16:in `/^I should see 
"Delicious"
$/'
      features\google_search.feature:9:in `Then I should see "Delicious"'

Failing Scenarios:
cucumber features\google_search.feature:5 # Scenario:
Google Search for delicious relaunch failure

1 scenario (1 failed)
3 steps (1 failed, 2 passed)
0m7.930s

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to