Sha256: 60196a807e0b226fa66502bc3a28bd641af579a2becd736f4434ae8ca24bf516
Contents?: true
Size: 758 Bytes
Versions: 24
Compression:
Stored size: 758 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe "Searchlogic::ActiveRecord::AssociationProxy" do it "should call location conditions" do company = Company.create user = company.users.create(:username => "bjohnson") company.users.send(:username_like, "bjohnson").should == [user] end it "should call ordering conditions" do company = Company.create user = company.users.create(:username => "bjohnson") company.users.send(:ascend_by_username).should == [user] end it "should call 'or' conditions" do company = Company.create user = company.users.create(:username => "bjohnson") company.users.send(:username_or_some_type_id_like, "bjohnson").should == [user] end end
Version data entries
24 entries across 24 versions & 7 rubygems