Sha256: 00ec77194383c6fa6bbe63c3f5d2781dc6e3f595b1b7a3d8245201bbb4579c29

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class UserFlowOrdersIntegrationTest < Workarea::SystemTest
      include Workarea::FlowIo::FlowFixtures

      def test_viewing_flow_orders_in_user
        user = create_user
        order = create_placed_canadian_flow_order
        order.update_attributes(user_id: user.id)

        set_current_user(user)

        visit storefront.users_account_path

        assert page.has_text?(232.31)

        visit storefront.users_order_path(order)

        assert page.has_text?("$9.29")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 test/system/workarea/storefront/users_flow_orders_system_test.rb