Sha256: 61540cd5c854ee7d1bee440238b0eb9764fcfe1243e6f273d285b71e373e206b
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
# Verifies that a posable object has the given pose words in its search index. RSpec::Matchers.define :have_pose_words do |expected| match do |actual| actual.pose_words.map(&:text).sort == expected.sort end failure_message_for_should do |actual| texts = actual.pose_words.map &:text "expected that subject would have pose words [#{expected.join ', '}], but it has [#{texts.join ', '}]" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pose-1.3 | spec/support/matchers.rb |