kaminari-rspec 0.14.1.b1 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +2 -0
- data/README.md +3 -0
- data/lib/kaminari_rspec/test_helpers.rb +0 -8
- data/lib/kaminari_rspec/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGZjNzljZTRkMjlkOTU1ZDUzNzgyMTk2M2IyZjEwMzMzYjhiYTNkZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmNlMDM5ZTFiNjQyYTQ3MzUzODkyMTVkMjZkODU1M2U2YmQ4YzVhNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzJkYTY0ZmMwNzljNWI1MmQwMzExMTJhYjkzZjZmZmM0NzRlMmEzZGY3MjM0
|
10
|
+
MmFiMDM3M2U5ZGJiNDg0MWUyYjkzMTk0NjNjMzE0NzhjM2ZlNDEyNWI3N2Zj
|
11
|
+
ZDhkYWE0ZTQ4YTNlYjU5MGZkOTE1ODYyNDZmYjZiYzBkZTk3Yjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTU5YjMwYjJhYzVlOTc4YzA3MTY4YTM4MWRlY2MwNmU4MWU2NWZiYmJhOGM5
|
14
|
+
OTc5MDQ3NWU4YTk4MjY2OTdjMDUxZDZiNTdjM2RjYWYyMmM5Njc2NzNmMDEy
|
15
|
+
MDQzMTRjMzcyYTY1ZTNjNjEwNmI5NzdjMzc0NGJkOWM3ZGRmZTg=
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -76,3 +76,6 @@ Currently supported mocking frameworks are:
|
|
76
76
|
* RR (Double Ruby)
|
77
77
|
* Mocha
|
78
78
|
* Flexmock
|
79
|
+
|
80
|
+
If you are using this gem, please drop me a note telling which one of the above mentioned frameworks you are using. If you
|
81
|
+
are using a framework which is not supported, feel free to fork and add the support for it.
|
@@ -38,8 +38,6 @@ module KaminariRspec
|
|
38
38
|
|
39
39
|
def stub_pagination_with_rspec(resource, values)
|
40
40
|
|
41
|
-
puts('Stubbing pagination methods with RSpec mocks')
|
42
|
-
|
43
41
|
values.each do |key, value |
|
44
42
|
allow(resource).to receive(key).and_return(value)
|
45
43
|
end
|
@@ -50,8 +48,6 @@ module KaminariRspec
|
|
50
48
|
|
51
49
|
def stub_pagination_with_rr(resource, values)
|
52
50
|
|
53
|
-
puts('Stubbing pagination methods with RR')
|
54
|
-
|
55
51
|
values.each do |key, value|
|
56
52
|
eval "stub(resource).#{key} { #{value} }"
|
57
53
|
end
|
@@ -62,8 +58,6 @@ module KaminariRspec
|
|
62
58
|
|
63
59
|
def stub_pagination_with_mocha(resource, values)
|
64
60
|
|
65
|
-
puts('Stubbing pagination methods with mocha')
|
66
|
-
|
67
61
|
values.each do |key, value|
|
68
62
|
resource.stubs(key).returns(value)
|
69
63
|
end
|
@@ -74,8 +68,6 @@ module KaminariRspec
|
|
74
68
|
|
75
69
|
def stub_pagination_with_flexmock(resource, values)
|
76
70
|
|
77
|
-
puts('Stubbing pagination methods with flexmock')
|
78
|
-
|
79
71
|
mock = flexmock(resource)
|
80
72
|
|
81
73
|
values.each do |key, value|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaminari-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.1
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Sandrini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
152
|
requirements:
|
153
|
-
- - ! '
|
153
|
+
- - ! '>='
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
155
|
+
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
158
|
rubygems_version: 2.0.5
|