Sha256: dc4519acbfc7a1aa3d813389af2a4db49999b2c5b2bb086479b4962cbc121673
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' describe "QBFC::Customer.new" do before(:each) do @integration = QBFC::Integration.new @sess = @integration.session end after(:each) do @integration.close end it "should create a new customer" do old_count = @sess.customers.find(:all).length c = @sess.customers.new c.name = "Cranky Customer" c.is_active = true c.last_name = "McCustomer" c.save n = @sess.customers.find("Cranky Customer") n.name.should == "Cranky Customer" n.is_active.should be(true) n.last_name.should == "McCustomer" @sess.customers.find(:all).length.should == old_count + 1 end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jm81-qbfc-0.3.0 | spec/integration/add_spec.rb |
qbfc-0.3.0 | spec/integration/add_spec.rb |