Skip to content

Commit

Permalink
First step implemented to make our refactored step pass
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jul 5, 2010
1 parent 793b902 commit 563f033
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/step_definitions/projects_steps.rb
Expand Up @@ -76,6 +76,16 @@
visit features_project_path @project
end

Given /^the "([^\"]*)" has "([^\"]*)"$/ do |model, assoc|
case model
when /project/
@project = Project.find 2
else
raise "Can't find model from \"#{model}\" to a path.\n" +
"Now, go and add a mapping in #{__FILE__}"
end
end

When /^I create new a feature$/ do
click_link 'New feature'
end
Expand Down

0 comments on commit 563f033

Please sign in to comment.