Class: ActiveStorageMatchers::IncludeBlobUrls
- Inherits:
-
Object
- Object
- ActiveStorageMatchers::IncludeBlobUrls
- Defined in:
- lib/decidim/dev/test/rspec_support/activestorage_matchers.rb
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message ⇒ Object
- #failure_message_when_negated ⇒ Object
-
#initialize(expected) ⇒ IncludeBlobUrls
constructor
A new instance of IncludeBlobUrls.
- #matches?(actual) ⇒ Boolean
Constructor Details
#initialize(expected) ⇒ IncludeBlobUrls
Returns a new instance of IncludeBlobUrls.
115 116 117 |
# File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 115 def initialize(expected) @expected = expected end |
Instance Method Details
#description ⇒ Object
119 120 121 |
# File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 119 def description "include blob URLs" end |
#failure_message ⇒ Object
132 133 134 |
# File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 132 def "expected #{actual.inspect} to match blobs with ID #{expected.map(&:id).join(", ")}" end |
#failure_message_when_negated ⇒ Object
136 137 138 |
# File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 136 def "expected #{actual.inspect} not to match blobs with ID #{expected.map(&:id).join(", ")}" end |