Commit 48a01d20248b03147e4812f7130472a91d30ac0a

Authored by Joenio Costa
1 parent ce8f3025

Adding the test that reproduces the bug

(ActionItem2934)
plugins/pg_search/test/unit/pg_search_plugin_test.rb
... ... @@ -31,6 +31,11 @@ class PgSearchPluginTest < ActiveSupport::TestCase
31 31 # assert_includes search(Profile, 'colmeia'), profile
32 32 # end
33 33  
  34 + should 'check if filter option is defined' do
  35 + plugin = PgSearchPlugin.new
  36 + assert plugin.find_by_contents('asset', Profile, 'query', {:page => 1})
  37 + end
  38 +
34 39 private
35 40  
36 41 def search(scope, query)
... ...