Sha256: 614b355148e2ce5b6aaeef54738cb4e55778b6034f3653c0a95a24dea88a2b64
Contents?: true
Size: 480 Bytes
Versions: 42
Compression:
Stored size: 480 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe "AliasScope" do it "should allow alias scopes" do User.create(:username => "bjohnson") User.create(:username => "thunt") User.username_has("bjohnson").all.should == User.find_all_by_username("bjohnson") end it "should allow alias scopes from the search object" do search = User.search search.username_has = "bjohnson" search.username_has.should == "bjohnson" end end
Version data entries
42 entries across 42 versions & 6 rubygems