test/cache_test.rb in rack-cache-0.2.0 vs test/cache_test.rb in rack-cache-0.3.0
- old
+ new
@@ -16,20 +16,20 @@
lambda { Rack::Cache.new(@app, {}) }.
should.not.raise(ArgumentError)
end
it 'sets options provided in the options Hash' do
object = Rack::Cache.new(@app, :foo => 'bar', 'foo.bar' => 'bling')
- object.options['foo.bar'].should.be == 'bling'
- object.options['rack-cache.foo'].should.be == 'bar'
+ object.options['foo.bar'].should.equal 'bling'
+ object.options['rack-cache.foo'].should.equal 'bar'
end
it 'takes a block; executes it during initialization' do
state, block_scope = 'not invoked', nil
object =
Rack::Cache.new @app do
block_scope = self
state = 'invoked'
should.respond_to :on
end
- state.should.be == 'invoked'
+ state.should.equal 'invoked'
object.should.be block_scope
end
end