diff options
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/step_definitions/authors_steps.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/features/support/step_definitions/authors_steps.rb b/features/support/step_definitions/authors_steps.rb index 7dd30ac..e97287e 100644 --- a/features/support/step_definitions/authors_steps.rb +++ b/features/support/step_definitions/authors_steps.rb @@ -1,11 +1,7 @@ -Given /^there is a user named "([^\"]*)"$/ do |login| - @user = Factory.create(:user, :login => login) -end - Then /^there should be (\d+) blog posts?$/ do |num| BlogPost.all.size == num end -Then /^the blog post should belong to "([^\"]*)"$/ do |login| - BlogPost.first.author.login == login +Then /^the blog post should belong to me$/ + BlogPost.first.author.login == User.last.login end
\ No newline at end of file |