fix an undefined cucumber step

This commit is contained in:
Reinier Balt 2012-03-24 10:01:17 +01:00
parent 7435b1ba93
commit 163389d914
2 changed files with 7 additions and 6 deletions

View file

@ -51,9 +51,10 @@ Then /^context "([^"]*)" should be above context "([^"]*)"$/ do |context_high, c
context_list_find_index(context_high).should < context_list_find_index(context_low)
end
Then /^I should see that a context named "([^"]*)" is not present$/ do |context_name|
Then /^I should see that a context named "([^"]*)" (is|is not) present$/ do |context_name, present|
is_not = present=="is not" ? "not " : ""
within "div#display_box" do
step "I should not see \"#{context_name}\""
step "I should #{is_not}see \"#{context_name}\""
end
end