diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index d5271fe..6bdf08b 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -519,6 +519,16 @@ class ProfileTest < Test::Unit::TestCase assert_includes TestingExtraDataForIndex.find_by_contents('sample'), profile end + should 'index profile identifier for searching' do + p = Profile.create!(:identifier => 'testprofile', :name => 'Interesting Profile') + assert_includes Profile.find_by_contents('testprofile'), p + end + + should 'index profile name for searching' do + p = Profile.create!(:identifier => 'testprofile', :name => 'Interesting Profile') + assert_includes Profile.find_by_contents('interesting'), p + end + private def assert_invalid_identifier(id) -- libgit2 0.21.2