From 70e29d6a14f962ec3c64d8821fc0b933ac270da2 Mon Sep 17 00:00:00 2001 From: Joe Ferris Date: Mon, 13 Jul 2009 14:27:54 -0400 Subject: [PATCH] Removed UUIDs --- hashpipe.gemspec | 1 - spec/hashpipe/archived_attribute_spec.rb | 2 +- spec/hashpipe_spec.rb | 7 ------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/hashpipe.gemspec b/hashpipe.gemspec index d7697ae..4f3153a 100644 --- a/hashpipe.gemspec +++ b/hashpipe.gemspec @@ -25,5 +25,4 @@ Gem::Specification.new do |s| ] s.add_dependency("wycats-moneta", ["> 0.0.0"]) s.add_dependency("activesupport", ["> 0.0.0"]) - s.add_dependency("assaf-uuid", ["> 0.0.0"]) end diff --git a/spec/hashpipe/archived_attribute_spec.rb b/spec/hashpipe/archived_attribute_spec.rb index 79ead4a..7807fed 100644 --- a/spec/hashpipe/archived_attribute_spec.rb +++ b/spec/hashpipe/archived_attribute_spec.rb @@ -2,7 +2,7 @@ describe HashPipe::ArchivedAttribute do before do - stub_model = stub(:uuid => '43') + stub_model = stub @aa = HashPipe::ArchivedAttribute.new(:glorp, stub_model) HashPipe::MonetaBackend.any_instance.stubs(:table_name_from).returns('foo_table') end diff --git a/spec/hashpipe_spec.rb b/spec/hashpipe_spec.rb index b885856..44e6768 100644 --- a/spec/hashpipe_spec.rb +++ b/spec/hashpipe_spec.rb @@ -10,7 +10,6 @@ ActiveRecord::Base.silence do ActiveRecord::Schema.define do create_table :stories do |table| - table.string :uuid table.string :title table.string :content_key table.string :description_key @@ -41,12 +40,6 @@ class Story < ActiveRecord::Base @bear_story.description.should == @bear_struct end - it "shouldn't change uuid after it is initially set" do - lambda { - @bear_story.save! - }.should_not change(@bear_story, :uuid) - end - [:save_archived_attributes, :destroy_archived_attributes].each do |sym| it "should respond to attached storage method #{sym}" do Story.new.should respond_to(sym)