Sha256: 031bae4de956a8144a1a27cc16e0e6c2ea98023a37598b432d5f6a1b03a67e05

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

RSpec::Matchers.define :have_identifier_of do |name|
  match do |actual|
    actual.name == Weskit::WML::Item.identifier(name)
  end
end

RSpec::Matchers.define :have_same_representation_as do |other|
  match do |actual|
    actual.to_s == other.to_s
  end
end

RSpec::Matchers.define :match_value_of do |value|
  match do |actual|
    actual.to_s == value.to_s
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
weskit-0.3.6 spec/wml_matchers.rb
weskit-0.3.5 spec/wml_matchers.rb
weskit-0.3.4 spec/wml_matchers.rb
weskit-0.3.3 spec/wml_matchers.rb
weskit-0.3.2 spec/wml_matchers.rb
weskit-0.3.1 spec/wml_matchers.rb
weskit-0.3.0 spec/wml_matchers.rb
weskit-0.2.1 spec/wml_matchers.rb
weskit-0.2.0 spec/wml_matchers.rb
weskit-0.1.0 spec/wml_matchers.rb