Sha256: a9eb295b308ed01d1bde299db1a7801a7423ea6585d9333a7b0f4aa71451fe59
Contents?: true
Size: 434 Bytes
Versions: 22
Compression:
Stored size: 434 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
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-0.4.2 | spec/requests/protected_resources/metal_spec.rb |
doorkeeper-0.4.1 | spec/requests/protected_resources/metal_spec.rb |