Sha256: 5731f13cf5b239b5488791ffd6811a3ed57ec0f3d7726cbea625be345cf3ab36
Contents?: true
Size: 938 Bytes
Versions: 7
Compression:
Stored size: 938 Bytes
Contents
class FormsDiscountDataset < Dataset::Base uses :pages, :shop_discounts, :forms helpers do def mock_valid_form_line_item_request @form = forms(:checkout) @form[:extensions] = { :add_line_item => { :extension => 'line_item', :process => 'add' } } @data = { :line_item => { :item_id => shop_line_items(:three).item.id, :item_type => 'ShopProduct' } } @request.session = { :shop_order => @order.id } end def mock_valid_form_discount_request @form = forms(:checkout) @form[:extensions] = { :add_discount => { :extension => 'discount', :process => 'add' } } @data = { :discount => { :code => shop_discounts(:ten_percent).code } } @request.session = { :shop_order => @order.id } end end end
Version data entries
7 entries across 7 versions & 1 rubygems