Skip to content

Commit

Permalink
Message pattern changed
Browse files Browse the repository at this point in the history
Was:
undefined method `arbitrary_method_name' for #<AggregateRoot::InstrumentedRepository:

Is now:
undefined method `arbitrary_method_name' for an instance of AggregateRoot::InstrumentedRepository
  • Loading branch information
mostlyobvious committed Dec 29, 2023
1 parent eba0c8c commit 9e51f7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aggregate_root/spec/instrumented_apply_strategy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module AggregateRoot
expect(instrumented_strategy).not_to respond_to(:arbitrary_method_name)
expect do
instrumented_strategy.arbitrary_method_name
end.to raise_error(NoMethodError, /undefined method `arbitrary_method_name' for #<AggregateRoot::InstrumentedApplyStrategy:/)
end.to raise_error(NoMethodError, /undefined method `arbitrary_method_name'/)
end

def subscribe_to(name)
Expand Down
2 changes: 1 addition & 1 deletion aggregate_root/spec/instrumented_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def apply_order_expired(_event)
expect(instrumented_repository).not_to respond_to(:arbitrary_method_name)
expect { instrumented_repository.arbitrary_method_name }.to raise_error(
NoMethodError,
/undefined method `arbitrary_method_name' for #<AggregateRoot::InstrumentedRepository:/
/undefined method `arbitrary_method_name' for .+AggregateRoot::InstrumentedRepository/
)
end

Expand Down
2 changes: 1 addition & 1 deletion ruby_event_store/spec/instrumented_dispatcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module RubyEventStore
expect(instrumented_dispatcher).not_to respond_to(:arbitrary_method_name)
expect { instrumented_dispatcher.arbitrary_method_name }.to raise_error(
NoMethodError,
/undefined method `arbitrary_method_name' for #<RubyEventStore::InstrumentedDispatcher:/
/undefined method `arbitrary_method_name' for .+RubyEventStore::InstrumentedDispatcher/
)
end

Expand Down
2 changes: 1 addition & 1 deletion ruby_event_store/spec/instrumented_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ module RubyEventStore
expect(instrumented_repository).not_to respond_to(:arbitrary_method_name)
expect { instrumented_repository.arbitrary_method_name }.to raise_error(
NoMethodError,
/undefined method `arbitrary_method_name' for #<RubyEventStore::InstrumentedRepository:/
/undefined method `arbitrary_method_name' for .+RubyEventStore::InstrumentedRepository/
)
end

Expand Down
2 changes: 1 addition & 1 deletion ruby_event_store/spec/instrumented_subscriptions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ module RubyEventStore
expect(instrumented_subscriptions).not_to respond_to(:arbitrary_method_name)
expect do
instrumented_subscriptions.arbitrary_method_name
end.to raise_error(NoMethodError, /undefined method `arbitrary_method_name' for #<RubyEventStore::InstrumentedSubscriptions:/)
end.to raise_error(NoMethodError, /undefined method `arbitrary_method_name' for .+RubyEventStore::InstrumentedSubscriptions/)
end

def subscribe_to(name)
Expand Down

0 comments on commit 9e51f7f

Please sign in to comment.