pagers 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/test/route_test.rb CHANGED
@@ -9,13 +9,29 @@ class RouteTest < ActionDispatch::IntegrationTest
9
9
 
10
10
  10.times.each { Record.create }
11
11
  get '/'
12
- assert_select 'li.current a[href=/?page=1]', '1'
12
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
13
+ assert_select 'li.current a[href="/?page=1"]:contains(1)'
14
+ else
15
+ assert_select 'li.current a[href="/?page=1"]', '1'
16
+ end
13
17
  get '/?page=2'
14
- assert_select 'li.current a[href=/?page=2]', '2'
18
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
19
+ assert_select 'li.current a[href="/?page=2"]:contains(2)'
20
+ else
21
+ assert_select 'li.current a[href="/?page=2"]', '2'
22
+ end
15
23
  get '/?dummy='
16
- assert_select 'li.current a[href=/?dummy=&amp;page=1]', '1'
24
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
25
+ assert_select 'li.current a[href="/?dummy=&page=1"]:contains(1)'
26
+ else
27
+ assert_select 'li.current a[href="/?dummy=&amp;page=1"]', '1'
28
+ end
17
29
  get '/?dummy=&page=2'
18
- assert_select 'li.current a[href=/?dummy=&amp;page=2]', '2'
30
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
31
+ assert_select 'li.current a[href="/?dummy=&page=2"]:contains(2)'
32
+ else
33
+ assert_select 'li.current a[href="/?dummy=&amp;page=2"]', '2'
34
+ end
19
35
  end
20
36
 
21
37
  test 'route param' do
@@ -25,13 +41,29 @@ class RouteTest < ActionDispatch::IntegrationTest
25
41
 
26
42
  10.times.each { Record.create }
27
43
  get '/'
28
- assert_select 'li.current a[href=/1]', '1'
44
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
45
+ assert_select 'li.current a[href="/1"]:contains(1)'
46
+ else
47
+ assert_select 'li.current a[href="/1"]', '1'
48
+ end
29
49
  get '/2'
30
- assert_select 'li.current a[href=/2]', '2'
50
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
51
+ assert_select 'li.current a[href="/2"]:contains(2)'
52
+ else
53
+ assert_select 'li.current a[href="/2"]', '2'
54
+ end
31
55
  get '/?dummy='
32
- assert_select 'li.current a[href=/1?dummy=]', '1'
56
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
57
+ assert_select 'li.current a[href="/1?dummy="]:contains(1)'
58
+ else
59
+ assert_select 'li.current a[href="/1?dummy="]', '1'
60
+ end
33
61
  get '/2?dummy='
34
- assert_select 'li.current a[href=/2?dummy=]', '2'
62
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
63
+ assert_select 'li.current a[href="/2?dummy="]:contains(2)'
64
+ else
65
+ assert_select 'li.current a[href="/2?dummy="]', '2'
66
+ end
35
67
  end
36
68
 
37
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Museways
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,8 +16,8 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.0
20
- - - "<"
19
+ version: 4.0.0
20
+ - - "<="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.2.0
23
23
  type: :runtime
@@ -26,8 +26,8 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 3.1.0
30
- - - "<"
29
+ version: 4.0.0
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.2.0
33
33
  - !ruby/object:Gem::Dependency
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.2.2
148
+ rubygems_version: 2.4.5
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Pagers for rails.