We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 844b6ac + 8ffb199 commit 45d4641Copy full SHA for 45d4641
spec/grape/api_spec.rb
@@ -1147,11 +1147,7 @@ def self.io
1147
it 'defaults to a standard logger log format' do
1148
t = Time.at(100)
1149
allow(Time).to receive(:now).and_return(t)
1150
- if ActiveSupport::VERSION::MAJOR >= 4
1151
- expect(subject.io).to receive(:write).with("I, [#{Logger::Formatter.new.send(:format_datetime, t)}\##{Process.pid}] INFO -- : this will be logged\n")
1152
- else
1153
- expect(subject.io).to receive(:write).with("this will be logged\n")
1154
- end
+ expect(subject.io).to receive(:write).with("I, [#{Logger::Formatter.new.send(:format_datetime, t)}\##{Process.pid}] INFO -- : this will be logged\n")
1155
subject.logger.info 'this will be logged'
1156
end
1157
0 commit comments