Skip to content

Commit

Permalink
rubocop -a
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 18, 2017
1 parent f04586d commit 99f48f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def initialize
# call +top_level+ to run your top level tasks.
def run(argv = ARGV)
standard_exception_handling do
init 'rake', argv
init "rake", argv
load_rakefile
top_level
end
Expand Down
20 changes: 10 additions & 10 deletions test/test_rake_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ def test_class_with_application
orig_app = Rake.application

return_app = Rake.with_application do |yield_app|
refute_equal orig_app, yield_app, 'new application must be yielded'
refute_equal orig_app, yield_app, "new application must be yielded"

assert_equal yield_app, Rake.application,
'new application must be default in block'
"new application must be default in block"
end

refute_equal orig_app, return_app, 'new application not returned'
assert_equal orig_app, Rake.application, 'original application not default'
refute_equal orig_app, return_app, "new application not returned"
assert_equal orig_app, Rake.application, "original application not default"
end

def test_class_with_application_user_defined
Expand All @@ -30,14 +30,14 @@ def test_class_with_application_user_defined
user_app = Rake::Application.new

return_app = Rake.with_application user_app do |yield_app|
assert_equal user_app, yield_app, 'user application must be yielded'
assert_equal user_app, yield_app, "user application must be yielded"

assert_equal user_app, Rake.application,
'user application must be default in block'
"user application must be default in block"
end

assert_equal user_app, return_app, 'user application not returned'
assert_equal orig_app, Rake.application, 'original application not default'
assert_equal user_app, return_app, "user application not returned"
assert_equal orig_app, Rake.application, "original application not default"
end

def test_display_exception_details
Expand Down Expand Up @@ -393,7 +393,7 @@ def test_handle_options_should_not_strip_options_from_argv
argv = %w[--trace]
@app.handle_options argv

assert_includes argv, '--trace'
assert_includes argv, "--trace"
assert @app.options.trace
end

Expand Down Expand Up @@ -470,7 +470,7 @@ def test_display_prereqs
def test_bad_run
@app.intern(Rake::Task, "default").enhance { fail }
_, err = capture_io {
assert_raises(SystemExit) { @app.run %w[-f -s --rakelib=""]}
assert_raises(SystemExit) { @app.run %w[-f -s --rakelib=""] }
}
assert_match(/see full trace/i, err)
end
Expand Down

0 comments on commit 99f48f2

Please sign in to comment.