Sha256: 6f71b47ed157b184d819fbb576890ec7657f971af50ac1ad44e19b24538bab6a
Contents?: true
Size: 631 Bytes
Versions: 14
Compression:
Stored size: 631 Bytes
Contents
class MockUrlGeneratorBuilder def initializer; end def new(attachment) @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
14 entries across 14 versions & 1 rubygems