Skip to content

Commit

Permalink
test(core): add contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Jan 12, 2024
1 parent 488c94e commit e40b9b8
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 237 deletions.
1 change: 1 addition & 0 deletions lib/convenient_service/core/concern/class_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def new(*args, **kwargs, &block)

##
# @see https://thoughtbot.com/blog/always-define-respond-to-missing-when-overriding
# @see https://blog.marc-andre.ca/2010/11/15/methodmissing-politely
# @see https://stackoverflow.com/a/3304683/12201472
#
# @param method_name [Symbol, String]
Expand Down
1 change: 1 addition & 0 deletions lib/convenient_service/core/concern/instance_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def initialize(...)

##
# @see https://thoughtbot.com/blog/always-define-respond-to-missing-when-overriding
# @see https://blog.marc-andre.ca/2010/11/15/methodmissing-politely
# @see https://stackoverflow.com/a/3304683/12201472
#
# @param method_name [Symbol, String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@
end
end
end
end

example_group "private class methods" do
describe ".method_missing" do
let(:service_class) do
Class.new do
Expand Down
Loading

0 comments on commit e40b9b8

Please sign in to comment.