Skip to content

Instantly share code, notes, and snippets.

@whoahbot
Created May 26, 2009 16:00
Show Gist options
  • Select an option

  • Save whoahbot/118132 to your computer and use it in GitHub Desktop.

Select an option

Save whoahbot/118132 to your computer and use it in GitHub Desktop.
diff --git a/lib/dm-core/spec/adapter_shared_spec.rb b/lib/dm-core/spec/adapter_shared_spec.rb
index 87c9dd3..e61e301 100644
--- a/lib/dm-core/spec/adapter_shared_spec.rb
+++ b/lib/dm-core/spec/adapter_shared_spec.rb
@@ -90,6 +90,12 @@ share_examples_for 'An Adapter' do
@heffalump.id.should == id
end
+ it 'should update altered fields' do
+ @heffalump.color = 'violet'
+ @heffalump.save
+ Heffalump.get(@heffalump.id).color.should == 'violet'
+ end
+
it 'should not alter other fields' do
color = @heffalump.color
@heffalump.num_spots = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment