Sha256: 5946ab33cd758e7d803c64da1bc05438be392200746594bfee49f3256672e996
Contents?: true
Size: 197 Bytes
Versions: 2
Compression:
Stored size: 197 Bytes
Contents
if defined?(RSpec::Matchers) require 'rspec/expectations' RSpec::Matchers.define :be_profane do |expected| match do |actual| Obscenity.profane?(actual) == expected end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
obscenity2-0.0.2 | lib/obscenity/rspec_matcher.rb |
obscenity2-0.0.1 | lib/obscenity/rspec_matcher.rb |