diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-08-01 11:27:28 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-08-03 18:01:32 -0700 |
commit | 21b19db5a30fcb6db83f4ac9302cc94c6320a0db (patch) | |
tree | 62a3b89d0f4c9b239bfd76ec77cfc3269ac041ef /spec/requests/manage_blog_posts_spec.rb | |
parent | 3454a9c3007a4bfd10ccd0ff39dc594ebb2a0184 (diff) | |
download | refinerycms-blog-21b19db5a30fcb6db83f4ac9302cc94c6320a0db.tar.gz refinerycms-blog-21b19db5a30fcb6db83f4ac9302cc94c6320a0db.tar.bz2 refinerycms-blog-21b19db5a30fcb6db83f4ac9302cc94c6320a0db.zip |
refactor engine testing scenario
Engine is now tested standalone by leveraging a dummy rails app
Enable Guard for speedy testing
Move factories to the more standard location `spec/factories/*`
Update README with a Testing section
Rename migrations to contain datetimestamps for their version to fix migration order issues when migrating the dummy application
Diffstat (limited to 'spec/requests/manage_blog_posts_spec.rb')
-rw-r--r-- | spec/requests/manage_blog_posts_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/requests/manage_blog_posts_spec.rb b/spec/requests/manage_blog_posts_spec.rb index 724cc59..8b1097d 100644 --- a/spec/requests/manage_blog_posts_spec.rb +++ b/spec/requests/manage_blog_posts_spec.rb @@ -1,7 +1,14 @@ require "spec_helper" describe "manage blog posts" do - login_refinery_user + # TODO: share this with other request specs + before(:each) do + user = Factory.create(:refinery_user) + visit new_refinery_user_session_url + fill_in "Login", :with => user.username + fill_in "Password", :with => user.password + click_button "Sign in" + end let!(:blog_post) { Factory(:blog_post, :title => "Refinery CMS blog post") } |