aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/step_definitions
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-02-24 22:14:35 -0600
committerJoe Sak <joe@joesak.com>2011-02-24 22:14:35 -0600
commitd23c10db7029cbcfd168d0ced50a72957d1fad8a (patch)
tree1940a2587bf8a072195ed71f931d2fc6c5282068 /features/support/step_definitions
parent518ee00e0c5d7c8a18e1c58dc00f58d6974d9f06 (diff)
downloadrefinerycms-blog-d23c10db7029cbcfd168d0ced50a72957d1fad8a.tar.gz
refinerycms-blog-d23c10db7029cbcfd168d0ced50a72957d1fad8a.tar.bz2
refinerycms-blog-d23c10db7029cbcfd168d0ced50a72957d1fad8a.zip
A little refactor and language change due to core auth steps & factories
Diffstat (limited to 'features/support/step_definitions')
-rw-r--r--features/support/step_definitions/authors_steps.rb8
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