spec/unit/server_spec.rb in goliath-1.0.4 vs spec/unit/server_spec.rb in goliath-1.0.5

- old
+ new

@@ -111,31 +111,31 @@ end it 'executes the block if the environment matches the provided string' do Goliath.env = :development block_run = false @s.environment('development') { block_run = true } - block_run.should be_true + block_run.should be true end it 'does not execute the block if the environment does not match' do Goliath.env = :development block_run = false @s.environment('test') { block_run = true } - block_run.should be_false + block_run.should be false end it 'accepts an array of environments' do Goliath.env = :development block_run = false @s.environment(['development', 'test']) { block_run = true } - block_run.should be_true + block_run.should be true end it 'does not run the block if the environment is not in the array' do Goliath.env = :production block_run = false @s.environment(['development', 'test']) { block_run = true } - block_run.should be_false + block_run.should be false end end end end