aboutsummaryrefslogtreecommitdiffstats
path: root/spec/requests/blog_posts_spec.rb
blob: 1eaf27a11621f42f7b147bf0e58a4b39dcd0ae34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "spec_helper"

describe "blog posts" do
  login_refinery_user
  
  context "when has blog posts" do    
    let(:blog_post) { Factory(:blog_post, :title => "Refinery CMS blog post") }
    
    it "should display blog post" do
      visit blog_post_path(blog_post)
      page.should have_content("Refinery CMS blog post")
    end
    
    it "should display the blog rss feed" do
      get blog_rss_feed_path
      response.should be_success
      response.content_type.should eq("application/rss+xml")
    end
  end
end