Sha256: e17c16510a352a688b6fcddec05722bfdf12a2c73a1a0ba6bab7e6f30c6586d2
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
require 'test_helper' module Workarea module Admin class FlowOrderIntegrationTest < Workarea::IntegrationTest include Admin::IntegrationTest include Workarea::FlowIo::FlowFixtures def test_returns_flow_order_attributes order = create_placed_canadian_flow_order get admin.order_path(order) assert(response.body.include?("Flow Payment: VISA ending with 1111")) assert(response.body.include?(I18n.t('workarea.admin.orders.view_flow_order'))) end def test_returns_flow_order_details order = create_placed_canadian_flow_order get admin.flow_order_path(order) assert(response.body.include?(order.total_price.to_s)) assert(response.body.include?(order.flow_total_price.to_s)) assert(response.body.include?(order.tax_total.to_s)) assert(response.body.include?(order.flow_tax_total.to_s)) assert(response.body.include?(order.shipping_total.to_s)) assert(response.body.include?(order.flow_shipping_total.to_s)) assert(response.body.include?(order.items.first.total_price.to_s)) assert(response.body.include?(order.items.first.flow_total_price.to_s)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | test/integration/workarea/admin/flow_order_integration_test.rb |