Sha256: 325a55f794868824bcc25b52bc3489976c14a23f182069e628a5bae550a92262

Contents?: true

Size: 802 Bytes

Versions: 3

Compression:

Stored size: 802 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'vertebrae'
require 'dummy/dummy'
require 'dummy/client'
require 'webmock/rspec'

require 'rspec/its'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}

RSpec.configure do |config|
  config.mock_with :rspec do |mocks|
    mocks.syntax = [:should, :expect]
  end

  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end


def reset_authentication_for(object)
  %w[username password].each do |item|
    Vertebrae::Base.send("#{item}=", nil)
    object.send("#{item}=", nil)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vertebrae-1.0.0 spec/spec_helper.rb
vertebrae-0.7.0 spec/spec_helper.rb
vertebrae-0.6.2 spec/spec_helper.rb