Sha256: 62b0302e5ca5061356083c1a90747bd678c2854f5a09652a7a30dc063f1a4e2a
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
module ViewHelpers def app_mock(options={}) options.reverse_merge! controller: 'products', action: 'index', params: {} app = double() allow(app).to receive_messages( request: { controller: options[:controller], action: options[:action] }, params: options[:params] ) return app end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
portier-1.1.1 | spec/support/views_helper.rb |
portier-1.1.0 | spec/support/views_helper.rb |