spec/unit/hanami/config/logger_spec.rb in hanami-2.0.0.rc1 vs spec/unit/hanami/config/logger_spec.rb in hanami-2.0.0
- old
+ new
@@ -70,12 +70,12 @@
.to(stream)
end
end
describe "#formatter" do
- it "defaults to :rack" do
- expect(subject.formatter).to eq(:rack)
+ it "defaults to :string" do
+ expect(subject.formatter).to eq(:string)
end
context "when :production environment" do
let(:env) { :production }
@@ -92,11 +92,11 @@
.to(:json)
end
end
describe "#template" do
- it "defaults to false" do
- expect(subject.template).to eq("[%<progname>s] [%<severity>s] [%<time>s] %<message>s")
+ it "defaults to :details" do
+ expect(subject.template).to be(:details)
end
end
describe "#template=" do
it "accepts a value" do