shareprogress 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/shareprogress/filters/new_button.rb +1 -0
- data/shareprogress.gemspec +1 -1
- data/test/create_button_test.rb +45 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 271e9682aa7a81d6fb0f52678aaab0cbef3cc5a1
|
4
|
+
data.tar.gz: f3823bff697e54d4a06eb3b619823ae9a6dbe211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6497fb1519499b7fda95195d70017a626f24a009c712e33f4b5f89a4bcaf2207a15b5597b441e0f48544703986dd6035aae598db0dc27100d71f857ebb678b4
|
7
|
+
data.tar.gz: 158264c71e812c69ce7f189de57eada2ce5be4406f16dc4fe8284136b1cb6f41d891b7c38bd59a99d91b235ce36cec8bb6633016843c9aa0d8703b6a9cb14f5c
|
data/.gitignore
CHANGED
data/shareprogress.gemspec
CHANGED
data/test/create_button_test.rb
CHANGED
@@ -147,7 +147,7 @@ scope do
|
|
147
147
|
end
|
148
148
|
|
149
149
|
# key
|
150
|
-
test "create button with
|
150
|
+
test "create button with nil key" do |data|
|
151
151
|
data["key"] = nil
|
152
152
|
|
153
153
|
result = ShareProgress::Button.create(data)
|
@@ -157,8 +157,18 @@ scope do
|
|
157
157
|
assert result == expected_result
|
158
158
|
end
|
159
159
|
|
160
|
+
test "create button with empty key" do |data|
|
161
|
+
data["key"] = ""
|
162
|
+
|
163
|
+
result = ShareProgress::Button.create(data)
|
164
|
+
|
165
|
+
expected_result = {:key=>[:not_present]}
|
166
|
+
|
167
|
+
assert result == expected_result
|
168
|
+
end
|
169
|
+
|
160
170
|
# page_url
|
161
|
-
test "create button with
|
171
|
+
test "create button with nil page_url" do |data|
|
162
172
|
data["page_url"] = nil
|
163
173
|
|
164
174
|
result = ShareProgress::Button.create(data)
|
@@ -168,6 +178,39 @@ scope do
|
|
168
178
|
assert result == expected_result
|
169
179
|
end
|
170
180
|
|
181
|
+
# page_url
|
182
|
+
test "create button with empty page_url" do |data|
|
183
|
+
data["page_url"] = ""
|
184
|
+
|
185
|
+
result = ShareProgress::Button.create(data)
|
186
|
+
|
187
|
+
expected_result = {:page_url=>[:not_url]}
|
188
|
+
|
189
|
+
assert result == expected_result
|
190
|
+
end
|
191
|
+
|
192
|
+
# page_title
|
193
|
+
test "create button with nil page_title" do |data|
|
194
|
+
data["page_title"] = nil
|
195
|
+
|
196
|
+
result = ShareProgress::Button.create(data)
|
197
|
+
|
198
|
+
expected_result = {:page_title=>[:not_present]}
|
199
|
+
|
200
|
+
assert result == expected_result
|
201
|
+
end
|
202
|
+
|
203
|
+
# page_title
|
204
|
+
test "create button with empty page_title" do |data|
|
205
|
+
data["page_title"] = ""
|
206
|
+
|
207
|
+
result = ShareProgress::Button.create(data)
|
208
|
+
|
209
|
+
expected_result = {:page_title=>[:not_present]}
|
210
|
+
|
211
|
+
assert result == expected_result
|
212
|
+
end
|
213
|
+
|
171
214
|
# button_template
|
172
215
|
test "create button with nil button_template" do |data|
|
173
216
|
data["button_template"] = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shareprogress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cecilia Rivero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: requests
|