Sha256: acce6b70eb3444064eade04e060acee814e6a7f0f19ca7a0a414d9b67525d350
Contents?: true
Size: 381 Bytes
Versions: 7
Compression:
Stored size: 381 Bytes
Contents
require 'spec_helper' describe "Posts", type: :feature do before do setup_site(FactoryGirl.create(:admin)) end it "shows a post" do post = FactoryGirl.create(:post, blog: @current_site.blogs.first, site: @current_site) visit url_for([post, only_path: true]) expect(page).to have_content(post.title) expect(page).to have_content(post.content) end end
Version data entries
7 entries across 7 versions & 1 rubygems