spec/taza/hash_spec.rb in taza-0.9.2.1 vs spec/taza/hash_spec.rb in taza-1.0
- old
+ new
@@ -4,12 +4,12 @@
# 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)
+ expect(entity).to 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)
+ expect(entity).to_not be_a_instance_of Hash
end
end