Sha256: 8d15759254fcb8b5758819c6126ba1cd3164800a7a2dd224f1faf1b4c63d594a
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
require 'bundler/setup' require 'webmock/rspec' require 'shoulda-matchers' require 'brickset' RSpec.configure do |config| # Set a dummy API key for the specs. config.before do Brickset.configure do |c| c.api_key = 'super-secret' end end # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = '.rspec_status' # Disable RSpec exposing methods globally on `Module` and `main` config.disable_monkey_patching! config.expect_with :rspec do |c| c.syntax = :expect end end Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :active_model end end def stub_post(path) stub_request(:post, Brickset::BASE_URI + path) end def fixture_path File.expand_path('../fixtures', __FILE__) end def fixture(file) File.read(fixture_path + '/' + file) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brickset_api-0.1.0 | spec/spec_helper.rb |