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

Version Path
nberger-searchlogic-2.4.29 spec/searchlogic/active_record/association_proxy_spec.rb
nberger-searchlogic-2.4.28 spec/searchlogic/active_record/association_proxy_spec.rb
obitum-searchlogic-2.4.28 spec/searchlogic/active_record/association_proxy_spec.rb
rd_searchlogic-3.0.1 spec/searchlogic/active_record/association_proxy_spec.rb
rd_searchlogic-3.0.0 spec/searchlogic/active_record/association_proxy_spec.rb
rd_searchlogic-3.0.0.rc4 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.27 spec/searchlogic/active_record/association_proxy_spec.rb
yoomee-searchlogic-2.4.27 spec/searchlogic/active_record/association_proxy_spec.rb
rd_searchlogic-3.0.0.rc3 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.26 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.25 spec/searchlogic/active_record/association_proxy_spec.rb
rd_searchlogic-3.0.0.rc2 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.24 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.23 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.22 spec/searchlogic/active_record/association_proxy_spec.rb
rd_searchlogic-3.0.0.rc spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-heroku-2.4.19 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.21 spec/searchlogic/active_record/association_proxy_spec.rb
gravis-searchlogic-2.4.20 spec/searchlogic/active_record/association_proxy_spec.rb
searchlogic-2.4.19 spec/searchlogic/active_record/association_proxy_spec.rb