Sha256: 3d0e7937cfd0d132cb1998df87916a5cbab358c081e90d6f7150274a4ed81262

Contents?: true

Size: 270 Bytes

Versions: 15

Compression:

Stored size: 270 Bytes

Contents

RSpec.shared_examples :successful_schema_fetch do
  it { should have_status(:ok) }
  it { should be_like_schema }
end

RSpec.shared_examples :a_not_found_test do
  test 'with a unexisting id' do
    url_params(id: 0)

    it { should have_status(:not_found) }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 lib/restspec/rspec/shared_examples.rb
restspec-0.3.1 lib/restspec/rspec/shared_examples.rb
restspec-0.3.0 lib/restspec/rspec/shared_examples.rb
restspec-0.2.6 lib/restspec/rspec/shared_examples.rb
restspec-0.2.5 lib/restspec/rspec/shared_examples.rb
restspec-0.2.4 lib/restspec/rspec/shared_examples.rb
restspec-0.2.3 lib/restspec/rspec/shared_examples.rb
restspec-0.2.2 lib/restspec/rspec/shared_examples.rb
restspec-0.2.1 lib/restspec/rspec/shared_examples.rb
restspec-0.2 lib/restspec/rspec/shared_examples.rb
restspec-0.1 lib/restspec/rspec/shared_examples.rb
restspec-0.0.4 lib/restspec/rspec/shared_examples.rb
restspec-0.0.3 lib/restspec/rspec/shared_examples.rb
restspec-0.0.2 lib/restspec/rspec/shared_examples.rb
restspec-0.0.1 lib/restspec/rspec/shared_examples.rb