File: test_stub_context.rb

package info (click to toggle)
ruby-excon 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: ruby: 7,970; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
shared_context "stubs" do 
  before do
    @original_defaults = Excon.defaults
    Excon.defaults = Excon.defaults.merge(mock: true)
  end

  after do
    Excon.defaults = @original_defaults
    Excon.stubs.clear
  end
end