parsable 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/parsable/version.rb +1 -1
- data/spec/context_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dc2aca5f2edb3f0bb1d0522ac63de4a73125969
|
4
|
+
data.tar.gz: 207194e469beaf3c8ebc89e49bdbda02251550c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 952219dcc4492b0df30c0bb15b1415c3cdf0ebdddd344d46fb963b9c1cba9b612164d51885996a34b1e60dd33c109928e9ae872a4044ca75867488fa401baae3
|
7
|
+
data.tar.gz: c12bdd6d23ee1ba81c7a555ddba9d18e6ce06394a5abe1276e8d25f107e2df6e6a6eb9607a585512a300f7ce995ef940321ab2b393e326fe73a223d1af7c54d1
|
data/.travis.yml
CHANGED
data/lib/parsable/version.rb
CHANGED
data/spec/context_spec.rb
CHANGED
@@ -13,14 +13,14 @@ describe Parsable::Context do
|
|
13
13
|
describe '#custom_store' do
|
14
14
|
it "stores custom variables in the custom object_key" do
|
15
15
|
context.custom_store :email, "test@test.com"
|
16
|
-
expect(context.instance_variable_get('@variables')[:custom]
|
16
|
+
expect(context.instance_variable_get('@variables')[:custom].email).to eql("test@test.com")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
describe '#system_store' do
|
21
21
|
it "stores variables as a top level object_key" do
|
22
22
|
context.system_store :test_object, 'test_attribute', 'test_value'
|
23
|
-
expect(context.instance_variable_get('@variables')[:test_object]
|
23
|
+
expect(context.instance_variable_get('@variables')[:test_object].test_attribute).to eql("test_value")
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|