Sha256: 7459cd6e93aa306ae7d43ad8ca9f65537227079f645609a4712648bba5087e98
Contents?: true
Size: 649 Bytes
Versions: 59
Compression:
Stored size: 649 Bytes
Contents
class MockUrlGeneratorBuilder def initializer end def new(attachment, attachment_options) @attachment = attachment @attachment_options = attachment_options self end def for(style_name, options) @generated_url_with_style_name = style_name @generated_url_with_options = options "hello" end def has_generated_url_with_options?(options) # options.is_a_subhash_of(@generated_url_with_options) options.inject(true) do |acc,(k,v)| acc && @generated_url_with_options[k] == v end end def has_generated_url_with_style_name?(style_name) @generated_url_with_style_name == style_name end end
Version data entries
59 entries across 57 versions & 7 rubygems