spec/lib/backend/redis/string_hash_spec.rb in picky-2.7.0 vs spec/lib/backend/redis/string_hash_spec.rb in picky-3.0.0.pre1

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' -describe Backend::Redis::StringHash do +describe Picky::Backend::Redis::StringHash do let(:index) { described_class.new :some_namespace } describe 'dump' do let(:backend) { index.backend } @@ -15,11 +15,11 @@ end end describe 'collection' do it 'raises' do - expect { index.collection :anything }.to raise_error("Can't retrieve collection for :anything from a StringHash. Use Index::Redis::ListHash.") + expect { index.collection :anything }.to raise_error("Can't retrieve collection for :anything from a StringHash. Use Indexes::Redis::ListHash.") end end describe 'member' do before(:each) do @@ -38,10 +38,10 @@ end end describe 'to_s' do it 'returns the cache path with the default file extension' do - index.to_s.should == 'Backend::Redis::StringHash(some_namespace:*)' + index.to_s.should == 'Picky::Backend::Redis::StringHash(some_namespace:*)' end end end \ No newline at end of file