blob: 284bd0720413d089b2062ce2553225f8aa4f36fd (
plain) (
tree)
|
|
require "spec_helper"
describe "blog" do
before(:all) do
# destroy all existing (if any) users before creating new one
Refinery::User.destroy_all
Factory(:refinery_user)
end
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
|