spec/hash_spec.rb in scudco-taza-0.8.4 vs spec/hash_spec.rb in scudco-taza-0.8.5
- old
+ new
@@ -1,12 +1,15 @@
require 'spec/spec_helper'
+require 'taza/entity'
+require 'extensions/hash'
+# This is too tightly coupled to Taza::Entity
describe 'Hash Extensions' do
it "should add methods for hash keys to some instance" do
entity = {'apple' => 'pie'}.convert_hash_keys_to_methods(nil)
entity.should respond_to(:apple)
end
it "should not add the methods to a hash" do
entity = {'apple' => 'pie'}.convert_hash_keys_to_methods(nil)
entity.should_not be_a_instance_of(Hash)
end
-end
\ No newline at end of file
+end