Skip to content

Commit

Permalink
added another method to mock backend so tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
auxesis committed Dec 24, 2009
1 parent 7b6657d commit 376b214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/persistence/mock_persistence_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(options={})
end

# log if the method is called (essentially, these are dodgy mocks)
%w(any_parents_failed? save).each do |method|
%w(any_parents_failed? save create_event).each do |method|
class_eval <<-HERE
def #{method}(*args)
@log.info("method #{method} was called on MockPersistenceBackend")
Expand Down

0 comments on commit 376b214

Please sign in to comment.