blob: b98fdf5a45a0006a9a46044f28f54fe97e01b52c (
plain) (
tree)
|
|
require "spec_helper"
describe "blog categories" do
before(:each) do
@blog_post = Factory(:blog_post, :title => "Refinery CMS blog post")
@blog_category = Factory(:blog_category, :title => "Video Games")
@blog_post.categories << @blog_category
@blog_post.save!
end
context "has posts" do
it "displays category's blog posts" do
visit blog_category_path(@blog_category)
page.should have_content("Refinery CMS blog post")
page.should have_content("Video Games")
end
end
end
|