Sha256: b6a1ea4e63f76fc1d1e4eab11c6db38418085a0dbaf209237a88dd373a16f3dc
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require 'rails_helper' module Attorney RSpec.describe DocumentsController, type: :controller do let(:valid_attributes) do { slug: 'terms', published: true, content: 'Lorem ipsum dolor sit amet' } end before do @routes = Engine.routes end describe 'GET #show' do it 'returns a success response' do document = Document.create! valid_attributes get :show, params: { slug: document.slug } expect(response).to be_success end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
attorney-1.0.0 | spec/controllers/attorney/documents_controller_spec.rb |