loquor 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/lib/loquor/resource_mock.rb +2 -2
- data/lib/loquor/version.rb +1 -1
- data/test/resource_mock_test.rb +11 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGMyMzdhMjI3OThmN2I0NThmZTBiZjNhZmU0ODJjODFlOWU0ZmJjZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTJkMTFhNDBlNzI0NzU1ZjA4OTVmOTRkODEyMWViOWFkNjhlODY2Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTY0MWVjYjNkZGNhMWYyM2I1M2NhNjM5MDA5MDRiNTBiOGEyM2E0NGFhZjA2
|
10
|
+
MjFkNTc4ZTE5YzM5ZWYwZTJjNjY1MmZjODI3MGEyYmVjNGU3OGFlZjM1NjBm
|
11
|
+
MmUyYzBkMTEwZWViNDU5ZTM1M2ZkMzgzYzE1NWQ5YTJiOGMzMzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTU2NTY5MDNmMzdlMTEyZTFiMzg2N2I5MDE0YzRhZjE0NDNkM2M1NGNkODZi
|
14
|
+
Nzg0ZjdmNzI5MDg4NzQwMDEwODA1Mzg3MGUyOTQ1OTVhMzdkNjJjNGQxZjM5
|
15
|
+
M2E0NzZkN2E0MDVlNzE5ZjJhOGYzNjEyZGUzMGIzOTNlMzk4MTY=
|
data/CHANGELOG.md
CHANGED
data/lib/loquor/resource_mock.rb
CHANGED
data/lib/loquor/version.rb
CHANGED
data/test/resource_mock_test.rb
CHANGED
@@ -22,6 +22,17 @@ module Loquor
|
|
22
22
|
foobar.description = "Cat"
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
def test_should_return_sample_object
|
27
|
+
foobar = Foobar.sample
|
28
|
+
assert_equal "Foobar", foobar.name
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_should_allow_sample_attributes_to_be_overriden
|
32
|
+
name = "Cat"
|
33
|
+
foobar = Foobar.sample(name: name)
|
34
|
+
assert_equal name, foobar.name
|
35
|
+
end
|
25
36
|
end
|
26
37
|
end
|
27
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loquor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
@@ -193,3 +193,4 @@ test_files:
|
|
193
193
|
- test/resource_mock_test.rb
|
194
194
|
- test/resource_test.rb
|
195
195
|
- test/test_helper.rb
|
196
|
+
has_rdoc:
|