Sha256: 70664d9e439e28b6c1df0a41fcc3fa1bba2e2bb1c35c3fa40df20c3fd2607d2d
Contents?: true
Size: 673 Bytes
Versions: 5
Compression:
Stored size: 673 Bytes
Contents
require 'rspec' require 'tiktalik' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:suite) do # Everything is stubbed so we just need to set it to constant Tiktalik.api_key = "API_KEY" Tiktalik.api_secret_key = "API_SECRET_KEY" # Stub all requests require 'faraday/adapter/test' $faraday_stubs = Faraday::Adapter::Test::Stubs.new Tiktalik::Object.adapter.adapter :test, $faraday_stubs end config.before(:each) do # Remove previously used stubs $faraday_stubs.instance_variable_set("@stack", {}) $faraday_stubs.instance_variable_set("@consumed", {}) end end
Version data entries
5 entries across 5 versions & 2 rubygems