spec/spec_helper.rb in danger-xcode_summary-1.3.0 vs spec/spec_helper.rb in danger-xcode_summary-1.3.1
- old
+ new
@@ -28,11 +28,10 @@
# A silent version of the user interface,
# it comes with an extra function `.string` which will
# strip all ANSI colours from the string.
-# rubocop:disable Lint/NestedMethodDefinition
def testing_ui
@output = StringIO.new
def @output.winsize
[20, 9999]
end
@@ -41,10 +40,9 @@
def cork.string
out.string.gsub(/\e\[([;\d]+)?m/, '')
end
cork
end
-# rubocop:enable Lint/NestedMethodDefinition
# Example environment (ENV) that would come from
# running a PR on TravisCI
def testing_env
{