Skip to content

Instantly share code, notes, and snippets.

@dbalatero
Created August 29, 2012 06:58
Show Gist options
  • Select an option

  • Save dbalatero/3507722 to your computer and use it in GitHub Desktop.

Select an option

Save dbalatero/3507722 to your computer and use it in GitHub Desktop.
describe Haha do
context '#hoho' do
use_vcr_cassette 'haha/hoho/successful_post', :match_requests_on => [:uri_without_params]
it 'should laugh' do
described_class.hoho('hahahahahha')
end
end
end
VCR.configure do |c|
c.register_request_matcher(
:uri_without_oauth,
&VCR.request_matchers.uri_without_params(:oauth_nonce, :oauth_timestamp)
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment