Skip to content

Commit

Permalink
Formatters #stop receives a NullNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
oestrich committed May 22, 2014
1 parent 831900b commit bacdea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/api_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def example_failed(example_notification)
output.puts " ! #{example_notification.example.description} (FAILED)"
end

def stop
def stop(notification)
RspecApiDocumentation.documentations.each(&:write)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/api_formatter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
expect(configuration).to receive(:write)
end

formatter.stop
formatter.stop(RSpec::Core::Notifications::NullNotification.new)
end
end

Expand Down

0 comments on commit bacdea6

Please sign in to comment.