Sha256: 1cd2fcc8e4c315383104331de9df2a21b2dbb10c884888b659ecf895d33785cc

Contents?: true

Size: 676 Bytes

Versions: 43

Compression:

Stored size: 676 Bytes

Contents

require File.join(File.dirname(__FILE__), '../test_helper')

require 'hammer_cli/testing/output_matchers'
require 'hammer_cli/testing/command_assertions'
require 'hammer_cli/testing/data_helpers'

include HammerCLI::Testing::OutputMatchers
include HammerCLI::Testing::CommandAssertions
include HammerCLI::Testing::DataHelpers

def defaults_mock(providers = {})
  defaults_path = File.join(File.dirname(__FILE__), '../unit/fixtures/defaults/defaults.yml')
  settings = load_yaml(defaults_path)

  defaults = HammerCLI::Defaults.new(settings[:defaults], defaults_path)
  defaults.stubs(:write_to_file).returns true
  defaults.stubs(:providers).returns(providers)
  defaults
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
hammer_cli-3.14.0 test/functional/test_helper.rb
hammer_cli-3.13.0 test/functional/test_helper.rb
hammer_cli-3.12.0 test/functional/test_helper.rb
hammer_cli-3.10.0 test/functional/test_helper.rb
hammer_cli-3.9.0 test/functional/test_helper.rb
hammer_cli-3.8.0 test/functional/test_helper.rb
hammer_cli-3.7.0 test/functional/test_helper.rb
hammer_cli-3.5.1 test/functional/test_helper.rb
hammer_cli-3.6.0 test/functional/test_helper.rb
hammer_cli-3.5.0 test/functional/test_helper.rb
hammer_cli-3.4.0 test/functional/test_helper.rb
hammer_cli-3.3.0 test/functional/test_helper.rb
hammer_cli-3.2.0 test/functional/test_helper.rb
hammer_cli-3.1.1 test/functional/test_helper.rb
hammer_cli-3.0.2 test/functional/test_helper.rb
hammer_cli-3.1.0 test/functional/test_helper.rb
hammer_cli-3.0.1 test/functional/test_helper.rb
hammer_cli-3.0.0 test/functional/test_helper.rb
hammer_cli-2.5.1 test/functional/test_helper.rb
hammer_cli-2.5.0 test/functional/test_helper.rb