Sha256: 246f5a9ec65d6021ff3d9e8e704d3746bf58ecbb2b09cd15fb72781def788ea9
Contents?: true
Size: 942 Bytes
Versions: 3
Compression:
Stored size: 942 Bytes
Contents
require 'rails_helper' describe 'posts' do describe "show post" do let!(:account){ FactoryGirl.create :confirmed_account } it "display post by slug" do visit "theblog/admin" expect(page).to have_content('Log in') fill_in 'Email', with: account.email fill_in 'Password', with: 'qwertyui' click_on 'Log in' expect(page).to have_content('Signed in successfully') category = FactoryGirl.create(:category, title: "Category", slug: "category") FactoryGirl.create(:post, title: "Post Title", slug: "slug", description: "Some post description", body: "Lorem ipsum dolor sit amet", parent_node: category) visit("/theblog/category/slug") expect(page).to have_content('Post Title') fill_in 'comment_body', with: 'Comment body' click_on 'Save' expect(page).to have_content 'Comment body' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
theblog-0.0.2.3 | spec/features/comments_spec.rb |
theblog-0.0.2.2 | spec/features/comments_spec.rb |
theblog-0.0.2 | spec/features/comments_spec.rb |