spec/cache_spec.rb in amee-4.2.0 vs spec/cache_spec.rb in amee-4.3.0

- old
+ new

@@ -73,9 +73,14 @@ c = AMEE::Data::Category.get(@connection, '/data/home/energy/quantity') i = c.item :label => 'biodiesel' c.expire_cache i = c.item :label => 'biodiesel' end + + it "removes special characters from cache keys" do + setup_connection + @connection.send(:cache_key, "/%cache/$4/%20test").should eql 'server.example.com/cache/4/20test' + end describe 'and automatic invalidation' do def test_invalidation_sequence(interactions) flexmock(Net::HTTP).new_instances do |mock|