Permalink
Browse files

trying to track down bug reported by jcoyne

  • Loading branch information...
cbeer committed Oct 31, 2011
1 parent 357e4e3 commit 92abe492f71aa9543e3e6d172dff9bcae54fd74e
Showing with 18 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +1 −0 jetty
  3. +14 −0 spec/lib/integration_test_spec.rb
View
@@ -0,0 +1,3 @@
+[submodule "jetty"]
+ path = jetty
+ url = git://github.com/projecthydra/hydra-jetty.git
1 jetty
Submodule jetty added at 387152
@@ -102,6 +102,20 @@
obj.datastreams["empty_ds"].new?.should == true
end
+ it "should update datastream attributes without changing the content" do
+ obj = @repository.find('test:1')
+ obj.datastreams["my_ds"].content = "XXX"
+ obj.save
+
+ obj = @repository.find('test:1')
+ obj.datastreams["my_ds"].dsLabel = "New Label"
+ obj.save
+
+ obj = @repository.find('test:1')
+ obj.datastreams["my_ds"].content.should == "XXX"
+ obj.datastreams["my_ds"].dsLabel.should == "New Label"
+ end
+
after(:all) do
@repository.find('test:1').delete rescue nil

0 comments on commit 92abe49

Please sign in to comment.