Sha256: 39adadb412df5f2fca74cd13db3b7162e1fd2402897d66717fb589ee98ccacc9

Contents?: true

Size: 382 Bytes

Versions: 11

Compression:

Stored size: 382 Bytes

Contents

require File.expand_path("../test_helper", __FILE__)

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

11 entries across 11 versions & 1 rubygems

Version Path
search_cop-1.1.0 test/error_test.rb
search_cop-1.0.9 test/error_test.rb
search_cop-1.0.8 test/error_test.rb
search_cop-1.0.7 test/error_test.rb
search_cop-1.0.6 test/error_test.rb
search_cop-1.0.5 test/error_test.rb
search_cop-1.0.4 test/error_test.rb
search_cop-1.0.3 test/error_test.rb
search_cop-1.0.2 test/error_test.rb
search_cop-1.0.1 test/error_test.rb
search_cop-1.0.0 test/error_test.rb