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
vagrant-0.9.1 test/acceptance/support/matchers/have_color.rb
vagrant-0.9.0 test/acceptance/support/matchers/have_color.rb
vagrant-0.8.10 test/acceptance/support/matchers/have_color.rb
vagrant-0.8.8 test/acceptance/support/matchers/have_color.rb