Sha256: b59c7bf0c05880cad7a4277663e016b4362791cc6a6bb3ee86a10d5bee1bbd89

Contents?: true

Size: 330 Bytes

Versions: 24

Compression:

Stored size: 330 Bytes

Contents

def string_matching(regexp)
  Spec::Mocks::ArgumentMatchers::RegexpMatcher.new(regexp)
end

class ContentArgumentMatcher
  def initialize(data)
    @data = data
  end
  def ==(actual)
    actual.is_a?(Dragonfly::Content) &&
      actual.data == @data
  end
end

def content_with_data(data)
  ContentArgumentMatcher.new(data)
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dragonfly-1.4.1 spec/support/argument_matchers.rb
dragonfly-1.4.0 spec/support/argument_matchers.rb
dragonfly-1.3.0 spec/support/argument_matchers.rb
dragonfly-1.2.1 spec/support/argument_matchers.rb
dragonfly-1.2.0 spec/support/argument_matchers.rb
dragonfly-1.1.5 spec/support/argument_matchers.rb
dragonfly-1.1.4 spec/support/argument_matchers.rb
dragonfly-1.1.3 spec/support/argument_matchers.rb
dragonfly-1.1.2 spec/support/argument_matchers.rb
dragonfly-1.1.1 spec/support/argument_matchers.rb
dragonfly-1.1.0 spec/support/argument_matchers.rb
dragonfly-1.0.12 spec/support/argument_matchers.rb
dragonfly-1.0.11 spec/support/argument_matchers.rb
dragonfly-1.0.10 spec/support/argument_matchers.rb
dragonfly-1.0.9 spec/support/argument_matchers.rb
dragonfly-1.0.8 spec/support/argument_matchers.rb
dragonfly-1.0.7 spec/support/argument_matchers.rb
dragonfly-1.0.6 spec/support/argument_matchers.rb
dragonfly-1.0.5 spec/support/argument_matchers.rb
dragonfly-1.0.4 spec/support/argument_matchers.rb