Sha256: 497d462be43a374b7bfb5d14e3ccf90ec0f2cdef52cf249fa3a1b6c93ad6d7ac
Contents?: true
Size: 321 Bytes
Versions: 12
Compression:
Stored size: 321 Bytes
Contents
module ViewHelpers def app_mock(options={}) options.reverse_merge! controller: 'products', action: 'index', params: {} app = double() app.stub(:request).and_return({ controller: options[:controller], action: options[:action] }) app.stub(:params).and_return(options[:params]) return app end end
Version data entries
12 entries across 12 versions & 2 rubygems