Sha256: 1ee5c74fce35ad168315579f75307d45f7ffd10159f48b8028043ccb6331e117
Contents?: true
Size: 390 Bytes
Versions: 5
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true require 'test_helper' if Rails::VERSION::MAJOR >= 5 class ActionControllerAPITest < ActionDispatch::IntegrationTest setup do Bookstore.create! name: 'junkudo' end test 'decorating objects in api only controllers' do get "/api/bookstores/#{Bookstore.last.id}.json" assert_equal({"name" => "junkudo"}, response.parsed_body) end end end
Version data entries
5 entries across 5 versions & 1 rubygems