You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a class that includes a number of ActiveModel modules. I removed the (hopefully unnecessary) rest of the code for clarity.
Using RSpec and FactoryBot.
The second example fails with ArgumentError: wrong number of arguments (given 1, expected 0).
After removing the qualifiers is_greater_than_or_equal_to and is_less_than_or_equal_to, the test passes.
Just for fun, I left in the qualifiers without passing any arguments. Assumable, the test fails because the qualifier actually expects an argument. The test fails with ArgumentError: wrong number of arguments (given 0, expected 1).
I'm a little confused where the error is rooted. Am I forgetting something?
LMK if you need more context.
The text was updated successfully, but these errors were encountered:
I have a class that includes a number of ActiveModel modules. I removed the (hopefully unnecessary) rest of the code for clarity.
Using RSpec and FactoryBot.
The second example fails with
ArgumentError: wrong number of arguments (given 1, expected 0)
.After removing the qualifiers
is_greater_than_or_equal_to
andis_less_than_or_equal_to
, the test passes.Just for fun, I left in the qualifiers without passing any arguments. Assumable, the test fails because the qualifier actually expects an argument. The test fails with
ArgumentError: wrong number of arguments (given 0, expected 1)
.I'm a little confused where the error is rooted. Am I forgetting something?
LMK if you need more context.
The text was updated successfully, but these errors were encountered: