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
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/test/acceptance/support/matchers/have_color.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/test/acceptance/support/matchers/have_color.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/test/acceptance/support/matchers/have_color.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/test/acceptance/support/matchers/have_color.rb
bmhatfield-vagrant-1.0.10 test/acceptance/support/matchers/have_color.rb
bmhatfield-vagrant-1.0.9 test/acceptance/support/matchers/have_color.rb
tnargav-1.3.6 test/acceptance/support/matchers/have_color.rb
tnargav-1.3.3 test/acceptance/support/matchers/have_color.rb
bmhatfield-vagrant-1.0.8 test/acceptance/support/matchers/have_color.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/acceptance/support/matchers/have_color.rb
tnargav-1.2.3 test/acceptance/support/matchers/have_color.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/acceptance/support/matchers/have_color.rb
bmhatfield-vagrant-1.0.7 test/acceptance/support/matchers/have_color.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/test/acceptance/support/matchers/have_color.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/test/acceptance/support/matchers/have_color.rb
tnargav-1.2.2 test/acceptance/support/matchers/have_color.rb
vagrantup-1.1.3 test/acceptance/support/matchers/have_color.rb
vagrantup-1.1.2 test/acceptance/support/matchers/have_color.rb
vagrantup-1.1.1 test/acceptance/support/matchers/have_color.rb
vagrantup-1.1.0 test/acceptance/support/matchers/have_color.rb