Skip to content

Commit

Permalink
Forgot to add this when we made the related scenario more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 30, 2010
1 parent 3c1f834 commit 897d4ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features/step_definitions/selenium_steps.rb
Expand Up @@ -17,6 +17,12 @@
visit new_project_path
end

Given /^the project has one feature$/ do
feature = Feature.first
@project = mock_model(Project, :id => 1, :features => [Feature.first]).as_null_object
@project.stub!(:features).and_return feature
end

When /^the first (.*) is hovered over$/ do |model|
selenium.mouse_over("#{model}_1")
end
Expand Down Expand Up @@ -170,7 +176,7 @@
selenium.mouse_over("css=div#header")
end

Then /^it should "([^\"]*)"$/ do |have_or_have_not|
Then /^it should "([^\"]*)" have an order button$/ do |have_or_have_not|
if have_or_have_not == 'does not'
response.should_not have_selector "css=button#button"
else
Expand Down

0 comments on commit 897d4ba

Please sign in to comment.