diff options
author | Olle Jonsson <olle.jonsson@gmail.com> | 2017-02-10 14:08:18 +0100 |
---|---|---|
committer | Olle Jonsson <olle.jonsson@gmail.com> | 2017-02-10 14:10:52 +0100 |
commit | 8e0ffab3967862cdffda3f2088db92deda695b32 (patch) | |
tree | 267c7d2a541995625852e3319812bc53de5684bb | |
parent | 67a63735c31db1c4b01aa7180f1cebb9bb7fbd6c (diff) | |
download | mixlib-log-8e0ffab3967862cdffda3f2088db92deda695b32.tar.gz |
Travis: lint, fix build, newer Rubies
Obvious fix.
Signed-off-by: Olle Jonsson <olle.jonsson@gmail.com>
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | features/steps/log.rb | 4 | ||||
-rw-r--r-- | lib/mixlib/log/formatter.rb | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 406c407..4dc0d1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,14 @@ language: ruby cache: bundler sudo: false rvm: - - 2.2.5 - - 2.3.1 + - 2.2.6 + - 2.3.3 + - 2.4.0 branches: only: - master before_install: - bundle --version - - gem --version + - gem update --system script: - bundle exec rake diff --git a/features/steps/log.rb b/features/steps/log.rb index e16c2d3..615cd94 100644 --- a/features/steps/log.rb +++ b/features/steps/log.rb @@ -39,9 +39,9 @@ end Then /^the regex '(.+)' should be logged$/ do |regex_string| regex = Regexp.new(regex_string, Regexp::MULTILINE) - regex.match(@output).should_not == nil + expect(regex.match(@output)).not_to be_nil end Then /^nothing should be logged$/ do - @output.should == "" + expect(@output).to eq "" end diff --git a/lib/mixlib/log/formatter.rb b/lib/mixlib/log/formatter.rb index c1eda6d..c8f1efa 100644 --- a/lib/mixlib/log/formatter.rb +++ b/lib/mixlib/log/formatter.rb @@ -45,7 +45,7 @@ module Mixlib when ::String msg when ::Exception - "#{ msg.message } (#{ msg.class })\n" << + "#{msg.message} (#{msg.class})\n" << (msg.backtrace || []).join("\n") else msg.inspect |