Sha256: 469e5e1ed17ab31325e3ce762da6c6babacff776ffb8a88a75c0e82822763ea9

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

require File.expand_path('../../../test_helper', __FILE__)

class NamedspacedModelTest < ActionDispatch::IntegrationTest
  def setup
    JSONAPI.configuration.json_key_format = :underscored_key
  end

  def test_get_flat_posts
    get '/flat_posts'
    assert_equal 200, status
    assert_equal "flat_posts", json_response["data"].first["type"]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsonapi-resources-0.7.1.beta1 test/integration/requests/namespaced_model_test.rb
jsonapi-resources-0.7.0 test/integration/requests/namespaced_model_test.rb
jsonapi-resources-0.6.2 test/integration/requests/namespaced_model_test.rb