Sha256: 71e9961489ab12c5a78b1d57ca2828fbbb8262a0e7355c27f984d2b437aaa78f
Contents?: true
Size: 632 Bytes
Versions: 5
Compression:
Stored size: 632 Bytes
Contents
require 'sinatra' require 'rack/test' require 'webmock/rspec' require 'rspec/mocks' require File.expand_path '../../spec/support/fake_puppetdb', __FILE__ WebMock.disable_net_connect!(:allow_localhost => true) # setup test environment set :environment, :test set :run, false set :raise_errors, true set :logging, false def app PuppetDBRunDeck.set :puppetdb_host, 'puppetdb' PuppetDBRunDeck.set :puppetdb_port, '8080' PuppetDBRunDeck end RSpec.configure do |config| config.include Rack::Test::Methods config.mock_with :rspec config.before(:all) do WebMock.disable_net_connect!(:allow_localhost => true) end end
Version data entries
5 entries across 5 versions & 1 rubygems