Sha256: 8b6f807dd8131b23ce88c0f3f5ad9d5def536700b4e72b5db72cd4fad091c668
Contents?: true
Size: 341 Bytes
Versions: 6
Compression:
Stored size: 341 Bytes
Contents
require "spec_helper" describe "Autocomplete" do context "Post" do it "should return matching titles" do Post.autocomplete(:title, 'a').map(&:title).should include('Alpha') end it "should not return non-matching titles" do Post.autocomplete(:title, 'b').map(&:title).should_not include('Charile') end end end
Version data entries
6 entries across 6 versions & 1 rubygems