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

Version Path
plasticine-1.2.8 spec/support/views_helper.rb
plasticine-1.2.7 spec/support/views_helper.rb
plasticine-1.2.6 spec/support/views_helper.rb
plasticine-1.2.5 spec/support/views_helper.rb
plasticine-1.2.4 spec/support/views_helper.rb
plasticine-1.2.3 spec/support/views_helper.rb
plasticine-1.2.2 spec/support/views_helper.rb
plasticine-1.2.1 spec/support/views_helper.rb
plasticine-1.2.0 spec/support/views_helper.rb
plasticine-1.1.1 spec/support/views_helper.rb
plasticine-1.1.0 spec/support/views_helper.rb
portier-1.0.3 spec/support/views_helper.rb