Skip to content

Commit

Permalink
Fix preloadable assoc test, fix test for scrooge_installed? for assoc…
Browse files Browse the repository at this point in the history
…iations
  • Loading branch information
sdsykes committed Mar 22, 2009
1 parent 1ca441a commit 8930328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/optimizations/associations/macro.rb
Expand Up @@ -17,7 +17,7 @@ def install!
protected

def scrooge_installed?
ActiveRecord::Base.included_modules.include?( InstanceMethods )
ActiveRecord::Associations::AssociationProxy.included_modules.include?( InstanceMethods )
end

end
Expand Down
2 changes: 1 addition & 1 deletion test/optimizations/associations/macro_test.rb
Expand Up @@ -17,7 +17,7 @@ class OptimizationsAssociationsMacroTest < ActiveSupport::TestCase
test "should only flag preloadable associations" do
Scrooge::Callsite.any_instance.expects(:association!).once
@user = MysqlUser.find(:first)
@user.table_privileges
@user.host
assert_equal MysqlUser.scrooge_callsite( @user.callsite_signature ).associations, Set.new
end

Expand Down

0 comments on commit 8930328

Please sign in to comment.