{"record":{"id":"54bb150e5514f15b","repo":"thoughtbot/shoulda-matchers","slug":"shoulda-matchers-is-not-configured-correctly-you","errorCode":null,"errorMessage":"shoulda-matchers is not configured correctly. You need to specify at least one\ntest framework and/or library. For example:\n\nShoulda::Matchers.configure do |config|\n  config.integrate do |with|\n    with.test_framework :rspec\n    with.library :rails\n  end\nend\n","messagePattern":"shoulda-matchers is not configured correctly\\. You need to specify at least one\ntest framework and/or library\\. For example:\n\nShoulda::Matchers\\.configure do \\|config\\|\n  config\\.integrate do \\|with\\|\n    with\\.test_framework :rspec\n    with\\.library :rails\n  end\nend\n","errorType":"exception","errorClass":"ConfigurationError","httpStatus":null,"severity":"error","filePath":"lib/shoulda/matchers/integrations/configuration.rb","lineNumber":33,"sourceCode":"\n          test_framework :missing_test_framework\n          library :missing_library\n\n          block.call(self)\n        end\n\n        def test_framework(name)\n          clear_default_test_framework\n          @test_frameworks << Integrations.find_test_framework!(name)\n        end\n\n        def library(name)\n          @libraries << Integrations.find_library!(name)\n        end\n\n        def apply\n          if no_test_frameworks_added? && no_libraries_added?\n            raise ConfigurationError, <<EOT\nshoulda-matchers is not configured correctly. You need to specify at least one\ntest framework and/or library. For example:\n\nShoulda::Matchers.configure do |config|\n  config.integrate do |with|\n    with.test_framework :rspec\n    with.library :rails\n  end\nend\nEOT\n          end\n\n          @test_frameworks.each do |test_framework|\n            test_framework.include(Shoulda::Matchers::Independent)\n            @libraries.each { |library| library.integrate_with(test_framework) }\n          end\n\n          self","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/thoughtbot/shoulda-matchers/blob/79cdfbc326e97c9b43991b644434ca53c1f62c4c/lib/shoulda/matchers/integrations/configuration.rb#L15-L51","documentation":"Error \"shoulda-matchers is not configured correctly. You need to specify at least one\ntest framework and/or library. For example:\n\nShoulda::Matchers.configure do |config|\n  config.integrate do |with|\n    with.test_framework :rspec\n    with.library :rails\n  end\nend\n\" thrown in thoughtbot/shoulda-matchers.","triggerScenarios":"Thrown at lib/shoulda/matchers/integrations/configuration.rb:33 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"}