Sha256: 43efa4f2f246d9346e96df327c916c3c9db438ec679ab6dc50d9744398c2d9e3

Contents?: true

Size: 907 Bytes

Versions: 23

Compression:

Stored size: 907 Bytes

Contents

require 'minitest/autorun'
require 'myjohndeere'
require 'byebug'
require 'webmock/minitest'

PROJECT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path('../api_fixtures', __FILE__)

class Minitest::Test
  # Fixtures are available in tests using something like:
  #
  #   API_FIXTURES[:fields][:id]
  #
  API_FIXTURES = APIFixtures.new

  def setup
    MyJohnDeere.configure do |config|
      config.app_id = "Dontcare"
      config.shared_secret = "somesecret"
      config.environment = :sandbox
      config.contribution_definition_id = "foobar"
      #config.log_level = :info
    end
  end

  def teardown
    WebMock.reset!
  end

  def default_access_token
    MyJohnDeere::AccessToken.new(
      oauth_access_token_token: "1Of2eWDVM2x90j1kjxVgxlz091kjmnndsa0912FYwz7ZxlVgPcPmFGb1RtBWLXGVw3k",
      oauth_access_token_secret: "2f05ab26-1879-4bfe-9129-b9b0144d1610",
    )
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
myjohndeere-0.1.11 test/test_helper.rb
myjohndeere-0.1.10 test/test_helper.rb
myjohndeere-0.1.9 test/test_helper.rb
myjohndeere-0.1.8 test/test_helper.rb
myjohndeere-0.1.7 test/test_helper.rb
myjohndeere-0.1.6 test/test_helper.rb
myjohndeere-0.1.5 test/test_helper.rb
myjohndeere-0.1.4 test/test_helper.rb
myjohndeere-0.1.3 test/test_helper.rb
myjohndeere-0.1.2 test/test_helper.rb
myjohndeere-0.1.1 test/test_helper.rb
myjohndeere-0.1.0 test/test_helper.rb
myjohndeere-0.0.11 test/test_helper.rb
myjohndeere-0.0.10 test/test_helper.rb
myjohndeere-0.0.9 test/test_helper.rb
myjohndeere-0.0.8 test/test_helper.rb
myjohndeere-0.0.7 test/test_helper.rb
myjohndeere-0.0.6 test/test_helper.rb
myjohndeere-0.0.5 test/test_helper.rb
myjohndeere-0.0.4 test/test_helper.rb