Sha256: 2011abf13b6d5d1031a0bd7d15833fb783d531eb8c549bd111126971599aa623
Contents?: true
Size: 370 Bytes
Versions: 4
Compression:
Stored size: 370 Bytes
Contents
require File.expand_path("test_helper", __dir__) class ErrorTest < SearchCop::TestCase def test_parse_error assert_raises SearchCop::ParseError do Product.unsafe_search title: { unknown_operator: "Value" } end end def test_unknown_column assert_raises SearchCop::UnknownColumn do Product.unsafe_search "Unknown: Column" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
search_cop-1.2.3 | test/error_test.rb |
search_cop-1.2.2 | test/error_test.rb |
search_cop-1.2.1 | test/error_test.rb |
search_cop-1.2.0 | test/error_test.rb |