Sha256: 374b2660d2d5219046b2c16e922e07d2e38f4f704859737e52c9d6e455fa9e4f
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require 'rails_helper' module Attorney describe 'document show screen' do before do Document.create!(slug: 'terms-and-conditions', published: true, content: 'There is content!') end it 'displays document by slug' do visit 'attorney/terms-and-conditions' expect(page).to have_content 'There is content!' end it 'uses application layout' do visit 'attorney/terms-and-conditions' expect(page).to have_content "Rails #{Rails.version} layout" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attorney-1.0.0 | spec/features/attorney/documents_spec.rb |