Sha256: c28fe23e09de2bdc29d6fa389f079b254a610562f2eb104049ecc2ac767a4ea4

Contents?: true

Size: 371 Bytes

Versions: 22

Compression:

Stored size: 371 Bytes

Contents

require 'spec_helper'

describe 'multi-word API resource' do
  it 'succeeds creating a new object using a resource that consists of multiple words' do
    post '/api/v1/multi_word_resources', test_model: { test: true }

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

    expect(json['test_model']['created']).to eq(true)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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