add more cucumber scenarios

This commit is contained in:
Reinier Balt 2011-08-15 17:04:59 +02:00
parent b40998e0bc
commit ef961188ea
12 changed files with 190 additions and 71 deletions

View file

@ -6,7 +6,7 @@ end
Given /^there exists an active context called "([^"]*)" for user "([^"]*)"$/ do |context_name, login|
user = User.find_by_login(login)
user.should_not be_nil
@context = user.contexts.create!(:name => context_name, :hide => false)
@context = user.contexts.find_or_create(:name => context_name, :hide => false)
end
Given /^there exists a context called "([^"]*)" for user "([^"]*)"$/ do |context_name, login|