Sha256: b379fb7a387f25120d03c0078f23de803cef36aec99155463c58ffc8b912f922
Contents?: true
Size: 428 Bytes
Versions: 16
Compression:
Stored size: 428 Bytes
Contents
require 'spec_helper_integration' feature 'ActionController::Metal API' do background do @client = FactoryGirl.create(:application) @resource = User.create!(name: 'Joe', password: 'sekret') @token = client_is_authorized(@client, @resource) end scenario 'client requests protected resource with valid token' do get "/metal.json?access_token=#{@token.token}" should_have_json 'ok', true end end
Version data entries
16 entries across 16 versions & 1 rubygems