Sha256: cbeb34970b5ceb4dcbadc1664e9f6bd7f4e0568d7b68606f70dd712eddfc6cf4

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

require "support/output"

# This creates a matcher that is used to match against certain
# Vagrant output. Vagrant output is not what is being tested,
# so all that state is hidden away in Acceptance::Output.
RSpec::Matchers.define :match_output do |expected, *args|
  match do |actual|
    Acceptance::Output.new(actual).send(expected, *args)
  end

  failure_message_for_should do |actual|
    "expected output to match: #{expected} #{args.inspect}"
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
vagrantup-0.8.9 test/acceptance/support/matchers/match_output.rb
vagrantup-0.8.8 test/acceptance/support/matchers/match_output.rb
vagrantup-0.8.10 test/acceptance/support/matchers/match_output.rb
vagrant-0.8.10 test/acceptance/support/matchers/match_output.rb
vagrant-0.8.8 test/acceptance/support/matchers/match_output.rb