Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove WillPaginate tests and bundle to ActiveRecord 3.1.3.

  • Loading branch information...
commit d4f363357923436b1e9c07c005a423a1bf418abd 1 parent d04a211
@metaskills authored
View
3  Gemfile
@@ -7,10 +7,9 @@ ar_version = spec.dependencies.detect{ |d|d.name == 'activerecord' }.requirement
gem 'sqlite3', '1.3.4'
gem 'activerecord', ar_version, :require => 'active_record'
-gem 'will_paginate', '2.3.16'
group :development do
- gem 'rake', '0.8.7'
+ gem 'rake', '~> 0.9.2'
end
group :test do
View
2  grouped_scope.gemspec
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ['lib']
s.rdoc_options = ['--charset=UTF-8']
- s.add_dependency 'activerecord', '~> 2.3.14'
+ s.add_dependency 'activerecord', '~> 3.1.3'
end
View
11 test/grouped_scope/has_many_association_test.rb
@@ -94,17 +94,6 @@ class GroupedScope::HasManyAssociationTest < GroupedScope::TestCase
end
end
- describe 'with will paginate' do
-
- it 'use group reflection, named scope, and paginate SQL' do
- where_ends_with_limits = /WHERE.*LIMIT 2 OFFSET 0/
- assert_sql(select_from_reports, where_for_groups, where_for_urgent_body, where_for_urgent_title, where_ends_with_limits) do
- @e2.group.reports.with_urgent_title.with_urgent_body.paginate(:page=>1,:per_page=>2)
- end
- end
-
- end
-
end
end
View
2  test/helper.rb
@@ -6,8 +6,6 @@
require 'minitest/autorun'
require 'factories'
-WillPaginate.enable_activerecord
-
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__)+'/debug.log')
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:'
ActiveRecord::Base.connection.class.class_eval do
Please sign in to comment.
Something went wrong with that request. Please try again.