Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
jsonapi-resources / test / integration / requests / namespaced_model_test.rb
Size: Mime:
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