spyke 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spyke/attribute_assignment.rb +1 -0
- data/lib/spyke/version.rb +1 -1
- data/test/attributes_test.rb +13 -0
- 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: b13b696560677d38ecf376de766cf815d004ea84
|
4
|
+
data.tar.gz: 50618def09e1ea933d813361baea87342f676a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575f175c00c78820d6c7f6178522054f8fb0ccf32a8898cac4c776ec715dd68a69572de1ccf329c8f33df2b76d54c095c9c754edb320c7fa72b843ae5803d86c
|
7
|
+
data.tar.gz: 010b22f6c54164d2d142ec1d83dcd5567f1153f86ae02f739609b6d160c5c55eacb6628c1ce64c3a6215a326e330d8f4e6578da6ccb8a5216de2c80314a2fccb
|
data/lib/spyke/version.rb
CHANGED
data/test/attributes_test.rb
CHANGED
@@ -59,6 +59,19 @@ module Spyke
|
|
59
59
|
assert_equal 'Sushi', recipe.title
|
60
60
|
end
|
61
61
|
|
62
|
+
def test_attributes_element_reference
|
63
|
+
recipe = Recipe.new(title: 'Chicken Soup')
|
64
|
+
|
65
|
+
assert_equal 'Chicken Soup', recipe[:title]
|
66
|
+
end
|
67
|
+
|
68
|
+
def test_attributes_element_assignment
|
69
|
+
recipe = Recipe.new
|
70
|
+
recipe[:title] = 'Beef Brisket'
|
71
|
+
|
72
|
+
assert_equal 'Beef Brisket', recipe.title
|
73
|
+
end
|
74
|
+
|
62
75
|
def test_equality
|
63
76
|
assert_equal Recipe.new(id: 2, title: 'Fish'), Recipe.new(id: 2, title: 'Fish')
|
64
77
|
refute_equal Recipe.new(id: 2, title: 'Fish'), Recipe.new(id: 1, title: 'Fish')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spyke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|