Sha256: b52db9b2cc073fb043c32f51195f236f555d78710c046d2bc6e844b20107e2e1

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

require 'sinatra'
require 'rack/test'
require 'webmock/rspec'
require 'rspec/mocks'

require_relative '../spec/support/fake_puppetdb'

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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppetdb_rundeck-0.2.1 spec/spec_helper.rb
puppetdb_rundeck-0.2.0 spec/spec_helper.rb