Sha256: d1ac467b757d53b1bc4c29362b9237709a12a979012c2c0448bc90bad0ec5cfa
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | spec/requests/protected_resources/metal_spec.rb |