Sha256: f2eb18950d59fedc23637f89b4584da4581512d011e844cfc93478007b3b1772

Contents?: true

Size: 166 Bytes

Versions: 8

Compression:

Stored size: 166 Bytes

Contents

shared_examples 'returns content as json' do
  before {action}

  it 'sends content as json' do
    expect(response.content_type).to eq("application/json")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
myrails-7.0.0 lib/myrails/templates/spec/request_shared_example.rb
myrails-6.0.0 lib/myrails/templates/spec/request_shared_example.rb
myrails-5.0.0 lib/myrails/templates/spec/request_shared_example.rb
myrails-4.0.0 lib/myrails/templates/rspec/request_shared_example.rb
myrails-3.2.1 lib/myrails/templates/rspec/request_shared_example.rb
myrails-3.2.0 lib/myrails/templates/rspec/request_shared_example.rb
myrails-3.1.0 lib/myrails/templates/rspec/request_shared_example.rb
myrails-3.0.0 lib/myrails/templates/rspec/request_shared_example.rb