We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68335b1 commit 5a9ab4aCopy full SHA for 5a9ab4a
spec/unit/dry/cli/registry_spec.rb
@@ -28,7 +28,9 @@
28
29
context "when class is given" do
30
it "raises error when #initialize arity is not equal to 0" do
31
- callback = Struct
+ callback = Class.new do
32
+ def initialize(foo); end
33
+ end
34
35
expect do
36
Bar::CLI::Commands.before("alpha", callback)
@@ -64,7 +66,9 @@
64
66
65
67
68
69
70
71
72
73
74
Bar::CLI::Commands.after("alpha", callback)
0 commit comments