flickrmocks 0.8.14 → 0.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +4 -0
- data/Rakefile +2 -75
- data/flickrmocks.gemspec +23 -148
- data/lib/flickr_mocks/api/api.rb +6 -0
- data/lib/flickr_mocks/stubs.rb +126 -83
- data/lib/flickr_mocks/version.rb +1 -1
- data/spec/api/api_spec.rb +33 -2
- data/spec/base/stubs_spec.rb +286 -165
- data/spec/base/version_spec.rb +2 -3
- data/spec/shared_examples/hash_argument.rb +34 -0
- data/spec/spec_helper.rb +1 -0
- metadata +37 -63
- data/VERSION +0 -1
data/spec/base/version_spec.rb
CHANGED
@@ -5,9 +5,8 @@ describe APP::VERSION do
|
|
5
5
|
|
6
6
|
context "constants" do
|
7
7
|
context "VERSION" do
|
8
|
-
it "returns
|
9
|
-
|
10
|
-
subject.should == expected_version
|
8
|
+
it "returns non-empty version" do
|
9
|
+
subject.should_not be_empty
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
shared_examples_for "object that expects single Hash argument" do
|
2
|
+
it "raises ArgumentError when no option provided" do
|
3
|
+
expect {
|
4
|
+
subject.send(method)
|
5
|
+
}.to raise_error(ArgumentError)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "raises ArgumentError when nil provided" do
|
9
|
+
expect {
|
10
|
+
subject.send(method)
|
11
|
+
}.to raise_error(ArgumentError)
|
12
|
+
end
|
13
|
+
|
14
|
+
it "raises ArgumentError when [] provided" do
|
15
|
+
expect {
|
16
|
+
subject.send(method)
|
17
|
+
}.to raise_error(ArgumentError)
|
18
|
+
end
|
19
|
+
it "raises ArgumentError when FixNum provided" do
|
20
|
+
expect {
|
21
|
+
subject.send(method)
|
22
|
+
}.to raise_error(ArgumentError)
|
23
|
+
end
|
24
|
+
it "raises ArgumentError when string provided" do
|
25
|
+
expect {
|
26
|
+
subject.send(method)
|
27
|
+
}.to raise_error(ArgumentError)
|
28
|
+
end
|
29
|
+
it "raises ArgumentError when symbol provided" do
|
30
|
+
expect {
|
31
|
+
subject.send(method)
|
32
|
+
}.to raise_error(ArgumentError)
|
33
|
+
end
|
34
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 8
|
8
|
-
-
|
9
|
-
version: 0.8.
|
8
|
+
- 15
|
9
|
+
version: 0.8.15
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Takaltoo
|
@@ -14,11 +14,11 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-20 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: flickraw
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
@@ -26,16 +26,14 @@ dependencies:
|
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
|
-
- 2
|
30
29
|
- 0
|
31
|
-
-
|
32
|
-
-
|
33
|
-
|
34
|
-
|
35
|
-
type: :development
|
30
|
+
- 8
|
31
|
+
- 2
|
32
|
+
version: 0.8.2
|
33
|
+
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
36
|
+
name: chronic
|
39
37
|
prerelease: false
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
@@ -45,10 +43,10 @@ dependencies:
|
|
45
43
|
segments:
|
46
44
|
- 0
|
47
45
|
version: "0"
|
48
|
-
type: :
|
46
|
+
type: :runtime
|
49
47
|
version_requirements: *id002
|
50
48
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
49
|
+
name: rspec
|
52
50
|
prerelease: false
|
53
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
52
|
none: false
|
@@ -56,13 +54,14 @@ dependencies:
|
|
56
54
|
- - ">="
|
57
55
|
- !ruby/object:Gem::Version
|
58
56
|
segments:
|
59
|
-
-
|
57
|
+
- 2
|
58
|
+
- 2
|
60
59
|
- 0
|
61
|
-
version:
|
60
|
+
version: 2.2.0
|
62
61
|
type: :development
|
63
62
|
version_requirements: *id003
|
64
63
|
- !ruby/object:Gem::Dependency
|
65
|
-
name:
|
64
|
+
name: capybara
|
66
65
|
prerelease: false
|
67
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
67
|
none: false
|
@@ -71,13 +70,11 @@ dependencies:
|
|
71
70
|
- !ruby/object:Gem::Version
|
72
71
|
segments:
|
73
72
|
- 0
|
74
|
-
|
75
|
-
- 1
|
76
|
-
version: 0.3.1
|
73
|
+
version: "0"
|
77
74
|
type: :development
|
78
75
|
version_requirements: *id004
|
79
76
|
- !ruby/object:Gem::Dependency
|
80
|
-
name:
|
77
|
+
name: factory_girl_rails
|
81
78
|
prerelease: false
|
82
79
|
requirement: &id005 !ruby/object:Gem::Requirement
|
83
80
|
none: false
|
@@ -85,14 +82,13 @@ dependencies:
|
|
85
82
|
- - ">="
|
86
83
|
- !ruby/object:Gem::Version
|
87
84
|
segments:
|
85
|
+
- 1
|
88
86
|
- 0
|
89
|
-
|
90
|
-
|
91
|
-
version: 0.8.2
|
92
|
-
type: :runtime
|
87
|
+
version: "1.0"
|
88
|
+
type: :development
|
93
89
|
version_requirements: *id005
|
94
90
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
91
|
+
name: faker
|
96
92
|
prerelease: false
|
97
93
|
requirement: &id006 !ruby/object:Gem::Requirement
|
98
94
|
none: false
|
@@ -101,16 +97,19 @@ dependencies:
|
|
101
97
|
- !ruby/object:Gem::Version
|
102
98
|
segments:
|
103
99
|
- 0
|
104
|
-
|
105
|
-
|
100
|
+
- 3
|
101
|
+
- 1
|
102
|
+
version: 0.3.1
|
103
|
+
type: :development
|
106
104
|
version_requirements: *id006
|
107
105
|
description: |-
|
108
|
-
FlickrMocks makes it possible to Marshal responses
|
109
|
-
|
106
|
+
FlickrMocks makes it possible to Marshal responses
|
107
|
+
generated from the FLickRaw gem. This is useful for
|
110
108
|
Mocking/Stubbing the Flickr interface for testing purposes.
|
111
|
-
|
109
|
+
The FlickRaw::Response and FlickRaw::ResponseList objects can
|
112
110
|
not be Marshaled because they contain singleton's.
|
113
|
-
email:
|
111
|
+
email:
|
112
|
+
- pouya@lavabit.com
|
114
113
|
executables: []
|
115
114
|
|
116
115
|
extensions: []
|
@@ -122,10 +121,10 @@ files:
|
|
122
121
|
- .document
|
123
122
|
- .gitignore
|
124
123
|
- .rspec
|
124
|
+
- Gemfile
|
125
125
|
- MIT-LICENSE
|
126
126
|
- README.rdoc
|
127
127
|
- Rakefile
|
128
|
-
- VERSION
|
129
128
|
- autotest/discover.rb
|
130
129
|
- flickrmocks.gemspec
|
131
130
|
- lib/flickr_mocks/api/api.rb
|
@@ -187,12 +186,13 @@ files:
|
|
187
186
|
- spec/models/photos_spec.rb
|
188
187
|
- spec/shared_examples/array_accessor.rb
|
189
188
|
- spec/shared_examples/collection.rb
|
189
|
+
- spec/shared_examples/hash_argument.rb
|
190
190
|
- spec/shared_examples/image_url_helpers.rb
|
191
191
|
- spec/shared_examples/size_accessor.rb
|
192
192
|
- spec/spec_helper.rb
|
193
193
|
- tasks/fixtures.rb
|
194
194
|
has_rdoc: true
|
195
|
-
homepage: http://
|
195
|
+
homepage: http://rubygems.org/gems/flickrmocks
|
196
196
|
licenses: []
|
197
197
|
|
198
198
|
post_install_message:
|
@@ -218,36 +218,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
version: "0"
|
219
219
|
requirements: []
|
220
220
|
|
221
|
-
rubyforge_project:
|
221
|
+
rubyforge_project: flickrmocks
|
222
222
|
rubygems_version: 1.3.7
|
223
223
|
signing_key:
|
224
224
|
specification_version: 3
|
225
|
-
summary:
|
226
|
-
test_files:
|
227
|
-
|
228
|
-
- spec/shared_examples/size_accessor.rb
|
229
|
-
- spec/shared_examples/collection.rb
|
230
|
-
- spec/shared_examples/image_url_helpers.rb
|
231
|
-
- spec/models/helpers_spec.rb
|
232
|
-
- spec/models/photo_details_spec.rb
|
233
|
-
- spec/models/photo_size_spec.rb
|
234
|
-
- spec/models/commons_institution_spec.rb
|
235
|
-
- spec/models/photo_sizes_spec.rb
|
236
|
-
- spec/models/commons_institutions_spec.rb
|
237
|
-
- spec/models/photos_spec.rb
|
238
|
-
- spec/models/photo_dimensions_spec.rb
|
239
|
-
- spec/models/photo_spec.rb
|
240
|
-
- spec/models/photo_search_spec.rb
|
241
|
-
- spec/api/api_spec.rb
|
242
|
-
- spec/api/flickr_spec.rb
|
243
|
-
- spec/api/options_spec.rb
|
244
|
-
- spec/api/sanitize_spec.rb
|
245
|
-
- spec/api/helper_spec.rb
|
246
|
-
- spec/base/stubs_spec.rb
|
247
|
-
- spec/base/helpers_spec.rb
|
248
|
-
- spec/base/version_spec.rb
|
249
|
-
- spec/base/flickraw/custom_clone_spec.rb
|
250
|
-
- spec/base/flickraw/custom_compare_spec.rb
|
251
|
-
- spec/base/flickraw/custom_marshal_spec.rb
|
252
|
-
- spec/base/fixtures_spec.rb
|
253
|
-
- spec/spec_helper.rb
|
225
|
+
summary: Sample gem to see if can do a bundle based gem
|
226
|
+
test_files: []
|
227
|
+
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.8.14
|