Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
if there aren't any callbacks then we're not skipping anything
Browse files Browse the repository at this point in the history
  • Loading branch information
celeduc committed Nov 6, 2015
1 parent ccba373 commit ffe6042
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions lib/fudge/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ def run(options={})
success = super
if callbacks
return false unless run_callbacks(success)
else
message "Skipping callbacks..."
end
report_time(start_time, time)

Expand Down
3 changes: 1 addition & 2 deletions spec/lib/fudge/build_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
it "prints messages to the formatter instead of default" do
subject.run :formatter => formatter

expect(stdout.string).not_to be_empty
expect(stdout.string).to include "Skipping callbacks..."
expect(stdout.string).to be_empty
end

context "when there are callback hooks" do
Expand Down

0 comments on commit ffe6042

Please sign in to comment.