aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/step_definitions
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-02-24 22:12:20 -0600
committerJoe Sak <joe@joesak.com>2011-02-24 22:12:20 -0600
commit518ee00e0c5d7c8a18e1c58dc00f58d6974d9f06 (patch)
tree13426f9a9299b0191c96a5ff1273f4eb4f69b761 /features/support/step_definitions
parent6a3cf5d6a695e9394a73bd429dbeae3787a3963e (diff)
downloadrefinerycms-blog-518ee00e0c5d7c8a18e1c58dc00f58d6974d9f06.tar.gz
refinerycms-blog-518ee00e0c5d7c8a18e1c58dc00f58d6974d9f06.tar.bz2
refinerycms-blog-518ee00e0c5d7c8a18e1c58dc00f58d6974d9f06.zip
WIP- just stuck on the uninitialized Constant weirdness
Diffstat (limited to 'features/support/step_definitions')
-rw-r--r--features/support/step_definitions/authors_steps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/step_definitions/authors_steps.rb b/features/support/step_definitions/authors_steps.rb
index 6f695ca..7dd30ac 100644
--- a/features/support/step_definitions/authors_steps.rb
+++ b/features/support/step_definitions/authors_steps.rb
@@ -1,5 +1,5 @@
Given /^there is a user named "([^\"]*)"$/ do |login|
- @user = Factory.create(:user, :login => login, :password => "#{login}-123", :password_confirmation => "#{login}-123")
+ @user = Factory.create(:user, :login => login)
end
Then /^there should be (\d+) blog posts?$/ do |num|
@@ -7,5 +7,5 @@ Then /^there should be (\d+) blog posts?$/ do |num|
end
Then /^the blog post should belong to "([^\"]*)"$/ do |login|
- BlogPost.last.author.login == login
+ BlogPost.first.author.login == login
end \ No newline at end of file