Sha256: 6295909f09bea9ca33038b24837e0361d783a7c18514b106a8ae3a6bbeb9055b
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
require 'spec_helper' describe FormStalker::Request do describe '.get' do context 'when using an invalid oauth_token' do let(:bad_connection) { FormStalker::Connection.new({}) } let(:request) { described_class.new(bad_connection) } before do VCR.use_cassette('invalid_oauth_token') do @response = request.get('form/1.json') end end it '@response should have an error' do expect(@response.error).to eq \ 'Either your oauth token is invalid ' \ "or you don't have access to this resource" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
form_stalker-1.0.0 | spec/form_stalker/request_spec.rb |