Top Level Namespace
- Includes:
- WebMock::API
Defined Under Namespace
Classes: ConfluencePage, Cuki, FeatureFile, LinkBuilder, String
Instance Method Summary collapse
Instance Method Details
#configure_pull_stubs ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/test_bits.rb', line 7 def configure_pull_stubs if File.exist?('stubs.json') stubs = JSON.parse(File.open('stubs.json').read) stubs.each_pair do |url, body| stub_request(:get, url).to_return(:status => 200, :body => body, :headers => {}) end FileUtils.rm 'stubs.json' end end |