spec/httpi/httpi_spec.rb in httpi-2.1.1 vs spec/httpi/httpi_spec.rb in httpi-2.2.0
- old
+ new
@@ -247,22 +247,22 @@
HTTPI.log = false # disable for specs
end
describe ".log" do
it "defaults to true" do
- HTTPI.log?.should be_true
+ expect(HTTPI.log?).to be_true
end
end
describe ".logger" do
it "defaults to Logger writing to STDOUT" do
- HTTPI.logger.should be_a(Logger)
+ expect(HTTPI.logger).to be_a(Logger)
end
end
describe ".log_level" do
it "defaults to :debug" do
- HTTPI.log_level.should == :debug
+ expect(HTTPI.log_level).to eq(:debug)
end
end
describe ".log" do
it "logs the given messages" do