spec/datastream_spec.rb in rubydora-0.0.6 vs spec/datastream_spec.rb in rubydora-0.0.7

- old
+ new

@@ -14,12 +14,11 @@ @mock_repository.should_receive(:datastream).and_raise("") @datastream.new?.should == true end it "should be dirty" do - @mock_repository.should_receive(:datastream).and_raise("") - @datastream.dirty?.should == true + @datastream.changed?.should == false end it "should call the appropriate api on save" do @mock_repository.should_receive(:datastream).and_raise("") @mock_repository.should_receive(:add_datastream).with(hash_including(:pid => 'pid', :dsid => 'dsid', :controlGroup => 'M', :dsState => 'A')) @@ -49,10 +48,10 @@ XML end it "should not be new" do @datastream.new?.should == false - @datastream.dirty?.should == false + @datastream.changed?.should == false end it "should provide attribute defaults from dsProfile" do @datastream.dsLocation.should == 'some:uri' @datastream.dsLabel.should == 'label'