Sha256: 62f1c1e4691569f6bb8b1308350d0e0dddf6fbd1e765322f9072db33f78335a5

Contents?: true

Size: 249 Bytes

Versions: 25

Compression:

Stored size: 249 Bytes

Contents

require 'spec_helper'

describe 'fails API' do
  it 'fails in the before action' do
    get '/api/v1/fails'

    expect(last_response.status).to eq(404)
    json = JSON.parse(last_response.body)

    expect(json['status']).to eq('failed')
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
api_me-0.9.4 spec/acceptance/api/v1/fails_spec.rb
api_me-0.9.3 spec/acceptance/api/v1/fails_spec.rb
api_me-0.9.2 spec/acceptance/api/v1/fails_spec.rb
api_me-0.9.1 spec/acceptance/api/v1/fails_spec.rb
api_me-0.9.0 spec/acceptance/api/v1/fails_spec.rb
api_me-0.8.3 spec/acceptance/api/v1/fails_spec.rb
api_me-0.7.1 spec/acceptance/api/v1/fails_spec.rb
api_me-0.8.2 spec/acceptance/api/v1/fails_spec.rb
api_me-0.8.1 spec/acceptance/api/v1/fails_spec.rb
api_me-0.8.0 spec/acceptance/api/v1/fails_spec.rb
api_me-0.7.0 spec/acceptance/api/v1/fails_spec.rb
api_me-0.6.0 spec/acceptance/api/v1/fails_spec.rb
api_me-0.5.3 spec/acceptance/api/v1/fails_spec.rb
api_me-0.5.2 spec/acceptance/api/v1/fails_spec.rb
api_me-0.5.1 spec/acceptance/api/v1/fails_spec.rb
api_me-0.5.0 spec/acceptance/api/v1/fails_spec.rb
api_me-0.4.1 spec/acceptance/api/v1/fails_spec.rb
api_me-0.4.0 spec/acceptance/api/v1/fails_spec.rb
api_me-0.3.6 spec/acceptance/api/v1/fails_spec.rb
api_me-0.3.5 spec/acceptance/api/v1/fails_spec.rb