blob: 43bc93e01b51e3e0dbcce9b0cc578ae5486c95cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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") }
context "has blog posts" do
it "Displays blog post" do
visit blog_post_path(blog_post)
page.should have_content("Refinery CMS blog post")
end
end
end
end
|