producer-core/spec/spec_helper.rb
Thibault Jouan ed99c191e0 Build conditions with DSL evaluated tests:
In Condition:

  * Modify constructor to accepts tests and a default return value;
  * Implement #met?;
  * Modify #! so that it return the negated value returned by #met?.

  In Condition::DSL:

  * Modify .evaluate to build the condition with tests and the value
    returned by a the evaluated condition block.

  Add a basic Test base class, with env and arguments as attributes.

  Add some spec helpers to build some easily testable kind of Test
instances (as test doubles).
2013-08-18 00:29:36 +00:00

17 lines
376 B
Ruby

require 'producer/core'
require 'support/exit_helpers'
require 'support/fixtures_helpers'
require 'support/net_ssh_story_helpers'
require 'support/tests_helpers'
RSpec.configure do |c|
c.treat_symbols_as_metadata_keys_with_true_values = true
c.include NetSSHStoryHelpers, :ssh
c.before(:each, :ssh) do
allow(remote).to receive(:session) { connection }
end
end