{"record":{"id":"4c40928176609fed","repo":"thoughtbot/shoulda-matchers","slug":"need-at-least-one-argument","errorCode":null,"errorMessage":"need at least one argument","messagePattern":"need at least one argument","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/shoulda/matchers/active_model/allow_value_matcher.rb","lineNumber":328,"sourceCode":"      #       it do\n      #         should_not allow_value([]).\n      #           for(:zip_code).\n      #           ignoring_interference_by_writer\n      #       end\n      #     end\n      #\n      #     # Minitest (Shoulda)\n      #     class AddressTest < ActiveSupport::TestCase\n      #       should_not allow_value([]).\n      #         for(:zip_code).\n      #         ignoring_interference_by_writer\n      #     end\n      #\n      # @return [AllowValueMatcher]\n      #\n      def allow_value(*values)\n        if values.empty?\n          raise ArgumentError, 'need at least one argument'\n        else\n          AllowValueMatcher.new(*values)\n        end\n      end\n      # @private\n      alias_method :allow_values, :allow_value\n\n      # @private\n      class AllowValueMatcher\n        include Helpers\n        include Qualifiers::IgnoringInterferenceByWriter\n\n        attr_reader(\n          :after_setting_value_callback,\n          :attribute_to_check_message_against,\n          :attribute_to_set,\n          :context,\n          :instance,","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/thoughtbot/shoulda-matchers/blob/79cdfbc326e97c9b43991b644434ca53c1f62c4c/lib/shoulda/matchers/active_model/allow_value_matcher.rb#L310-L346","documentation":"Error \"need at least one argument\" thrown in thoughtbot/shoulda-matchers.","triggerScenarios":"Thrown at lib/shoulda/matchers/active_model/allow_value_matcher.rb:328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79cdfbc326e97c9b43991b644434ca53c1f62c4c","analyzedAt":"2026-08-23T09:43:24.200Z","schemaVersion":2},"datasetVersion":"2026-08-23T13:39:53.451Z"}