Sha256: 53602e2b86f3a03420746e3412a382fd7cb8891de4f47ca939eec2cd5b64155c

Contents?: true

Size: 194 Bytes

Versions: 64

Compression:

Stored size: 194 Bytes

Contents

RSpec::Matchers.define :have_color do
  match do |actual|
    actual.index("\e[31m")
  end

  failure_message_for_should do |actual|
    "expected output to contain color, but didn't"
  end
end

Version data entries

64 entries across 64 versions & 11 rubygems

Version Path
vagrantup-1.0.7 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.6 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.5 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.4 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.3 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.2 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.1 test/acceptance/support/matchers/have_color.rb
vagrantup-1.0.0 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.99.2 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.99.1 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.7 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.6 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.5 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.4 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.3 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.2 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.1 test/acceptance/support/matchers/have_color.rb
vagrantup-0.9.0 test/acceptance/support/matchers/have_color.rb
vagrantup-0.8.9 test/acceptance/support/matchers/have_color.rb
vagrantup-0.8.8 test/acceptance/support/matchers/have_color.rb