Class: ActiveStorageMatchers::BeBlobUrl
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveStorageMatchers::BeBlobUrl
 
 
- 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)  ⇒ BeBlobUrl 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of BeBlobUrl.
 - #matches?(actual) ⇒ Boolean
 
Constructor Details
#initialize(expected) ⇒ BeBlobUrl
Returns a new instance of BeBlobUrl.
      87 88 89  | 
    
      # File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 87 def initialize(expected) @expected = expected end  | 
  
Instance Method Details
#description ⇒ Object
      91 92 93  | 
    
      # File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 91 def description "be a blob URL" end  | 
  
#failure_message ⇒ Object
      101 102 103  | 
    
      # File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 101 def "expected #{actual} to match blob with ID #{expected.id}" end  | 
  
#failure_message_when_negated ⇒ Object
      105 106 107  | 
    
      # File 'lib/decidim/dev/test/rspec_support/activestorage_matchers.rb', line 105 def "expected #{actual} not to match blob with ID #{expected.id}" end  |