summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-03-01 22:13:54 -0800
committerTim Smith <tsmith84@gmail.com>2016-03-01 22:13:54 -0800
commit2c66ca3402ac4ce38b397d61692d660a2f4ed9ec (patch)
tree1f78a23522dee4ed96d3846b4bac2ab63e10af5d /features
parent1fccbaa9810383722e62317c38430103d365ebc4 (diff)
downloadmixlib-log-2c66ca3402ac4ce38b397d61692d660a2f4ed9ec.tar.gz
Resolve chef style issues
Diffstat (limited to 'features')
-rw-r--r--features/steps/log.rb9
-rw-r--r--features/support/env.rb17
-rw-r--r--features/support/logit.rb6
3 files changed, 15 insertions, 17 deletions
diff --git a/features/steps/log.rb b/features/steps/log.rb
index 3ae3a53..e16c2d3 100644
--- a/features/steps/log.rb
+++ b/features/steps/log.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -37,12 +37,11 @@ When /^the message '(.+)' is sent at the '(.+)' level$/ do |message, level|
end
end
-Then /^the regex '(.+)' should be logged$/ do |regex_string|
+Then /^the regex '(.+)' should be logged$/ do |regex_string|
regex = Regexp.new(regex_string, Regexp::MULTILINE)
regex.match(@output).should_not == nil
end
-Then /^nothing should be logged$/ do
+Then /^nothing should be logged$/ do
@output.should == ""
end
-
diff --git a/features/support/env.rb b/features/support/env.rb
index 05cdef8..e0d2bad 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,17 +16,17 @@
# limitations under the License.
#
-$: << File.join(File.dirname(__FILE__), '..', '..', 'lib')
+$: << File.join(File.dirname(__FILE__), "..", "..", "lib")
-require 'rspec/expectations'
-require 'mixlib/log'
-require 'tmpdir'
-require 'stringio'
+require "rspec/expectations"
+require "mixlib/log"
+require "tmpdir"
+require "stringio"
class MyWorld
def initialize
@tmpdir = File.join(Dir.tmpdir, "mixlib_log")
- @output = ''
+ @output = ""
@output_io = StringIO.new(@output)
Logit.init(@output_io)
end
@@ -43,4 +43,3 @@ end
After do
system("rm -rf #{@tmpdir}")
end
-
diff --git a/features/support/logit.rb b/features/support/logit.rb
index 5a5cb45..71b12c6 100644
--- a/features/support/logit.rb
+++ b/features/support/logit.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -18,4 +18,4 @@
class Logit
extend Mixlib::Log
-end \ No newline at end of file
+end