diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-29 07:55:13 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-07-29 07:55:13 +0300 |
commit | 6e2046f4b969d0b50a0bfcd240c28e1749105c3b (patch) | |
tree | 8fdbeb3582550f0d1838ace6fcae07e6d07ccb68 /spec | |
parent | 0cf860f577c7ef2c0d8b8ccd3100d9c57dedf631 (diff) | |
download | refinerycms-blog-6e2046f4b969d0b50a0bfcd240c28e1749105c3b.tar.gz refinerycms-blog-6e2046f4b969d0b50a0bfcd240c28e1749105c3b.tar.bz2 refinerycms-blog-6e2046f4b969d0b50a0bfcd240c28e1749105c3b.zip |
Need a user first because otherwise it will redirect to first user creation form.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/blog_categories_spec.rb | 4 | ||||
-rw-r--r-- | spec/requests/blog_posts_spec.rb | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/requests/blog_categories_spec.rb b/spec/requests/blog_categories_spec.rb index b98fdf5..09dc4ac 100644 --- a/spec/requests/blog_categories_spec.rb +++ b/spec/requests/blog_categories_spec.rb @@ -1,6 +1,8 @@ require "spec_helper" describe "blog categories" do + before(:all) { Factory(:refinery_user) } + before(:each) do @blog_post = Factory(:blog_post, :title => "Refinery CMS blog post") @blog_category = Factory(:blog_category, :title => "Video Games") @@ -15,5 +17,5 @@ describe "blog categories" do page.should have_content("Video Games") end end - + end diff --git a/spec/requests/blog_posts_spec.rb b/spec/requests/blog_posts_spec.rb index f89ba9a..43bc93e 100644 --- a/spec/requests/blog_posts_spec.rb +++ b/spec/requests/blog_posts_spec.rb @@ -1,12 +1,14 @@ require "spec_helper" describe "blog" do + before(:all) { Factory(:refinery_user) } + it "displays the blog rss feed" do get blog_rss_feed_path response.should be_success response.content_type.should eq("application/rss+xml") end - + describe "posts" do let!(:blog_post) { Factory(:blog_post, :title => "Refinery CMS blog post") } |