Sha256: 706a7c2e7c034fc2081b3b4cd14df53775f543a6f848a39c20b5dec635e6be15

Contents?: true

Size: 165 Bytes

Versions: 1

Compression:

Stored size: 165 Bytes

Contents

if defined?(RSpec::Matchers)
  RSpec::Matchers.define :be_profane do |expected|
    match do |actual|
      Obscenity.profane?(actual) == expected
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
obscenity-1.0.2 lib/obscenity/rspec_matcher.rb