Sha256: cc03f22e5f419dbd0876a40f5df7cab6bacf988118f1390c0d2b9f9482b5891f
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require_relative '../spec_helper' class SalesOrderSpec < Skr::TestCase it "can be saved" do user = Lanes::User.find_by(login:'admin') model = SalesOrder.from_attribute_data({ terms_id: skr_payment_term(:cash).id, location_id: skr_location(:default).id, customer_id: skr_customer(:billy).id, billing_address: { name: "Billy" }, shipping_address:{ name: "Billy" } }, user) assert model.save end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.3.0 | spec/server/models/sales_order_spec.rb |
stockor-0.2 | spec/server/models/sales_order_spec.rb |