spec/models/massive/process_serializer_spec.rb in massive-0.3.0 vs spec/models/massive/process_serializer_spec.rb in massive-0.4.0

- old
+ new

@@ -33,6 +33,20 @@ it "serializes completed" do serialized[:completed].should be_false end end + + context "when it does not respond to file" do + it "does not serializes file" do + serialized[:file].should be_blank + end + end + + context "when it responds to file" do + let(:process) { Massive::FileProcess.new } + + it "serializes file" do + serialized[:file].should be_present + end + end end