Searched defs:autocomplete (Results 1 - 1 of 1) sorted by relevance

/ontohub/spec/models/
H A Dautocomplete_spec.rb4 def autocomplete(scopes, query) method
26 expect(autocomplete('User', foo.name).size).to eq(2)
34 expect(autocomplete('User', foobar.name)).to eq([foobar])
40 expect(autocomplete('User', foobar.email)).to eq([foobar])
48 expect(autocomplete('User', 'baz').size).to eq(0)
56 let(:result) { autocomplete('User,Team', 'bar') }
74 expect(autocomplete('User,Team', team_faker.name)).
82 context 'autocomplete with exclusion' do

Completed in 7 milliseconds