spec/rivendell/import/cut_spec.rb in rivendell-import-0.10 vs spec/rivendell/import/cut_spec.rb in rivendell-import-1.01

- old
+ new

@@ -112,9 +112,23 @@ db_cut.days.should == subject.days end end + context "when API attributes are defined" do + + before do + subject.description = "dummy" + subject.stub :xport => mock + end + + it "should invoke xport to edit cut" do + subject.xport.should_receive(:edit_cut).with(subject.cart.number, subject.number, "description" => subject.description) + subject.update + end + + end + end describe "#name" do it "should return 001015_001 for cart number 1015 and number 1" do