zoro 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zoro/record.rb +1 -1
- data/lib/zoro/version.rb +1 -1
- data/test/zoro/record_test.rb +4 -4
- 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: ae76e9a3e3f46e003237d662796a96ddfe1b48f6
|
4
|
+
data.tar.gz: ac63ade2bd5a20cced97861fde25ce629cff1045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ac257e0a8bbf644c5756f0231986d8d2a769645b52008212e1c02de981590861854306a23e7620c1e996d244b398086cc2790a916cdf75ade7e4dc737d070c
|
7
|
+
data.tar.gz: 26de6957f778b2d96cc928144a5c7f207fe471b91e1d3d280fd8bd34a88f7fec120e24cbb4335ebb84fdd9c825e9f7dc9620f8e379f484de079e2566f6d90f3e
|
data/lib/zoro/record.rb
CHANGED
data/lib/zoro/version.rb
CHANGED
data/test/zoro/record_test.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
require './test/test_helper.rb'
|
2
2
|
require 'zoro/record.rb'
|
3
3
|
|
4
|
-
class TestRecord < Zoro::Record
|
4
|
+
class Zoro::TestRecord < Zoro::Record
|
5
5
|
end
|
6
6
|
|
7
7
|
describe Zoro::Record do
|
8
8
|
it "serializes itself out to zoho xml" do
|
9
|
-
r = TestRecord.new
|
9
|
+
r = Zoro::TestRecord.new
|
10
10
|
r.fields["Foo"] = "a foo"
|
11
11
|
r.fields["Bar"] = "a bar"
|
12
12
|
xml = r.to_xml
|
@@ -20,7 +20,7 @@ describe Zoro::Record do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
it "relays itself to zoho api" do
|
23
|
-
r = TestRecord.new
|
23
|
+
r = Zoro::TestRecord.new
|
24
24
|
api = stub
|
25
25
|
api.expects(:insert_records).with(r)
|
26
26
|
r.api = api
|
@@ -28,7 +28,7 @@ describe Zoro::Record do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it "uses the name of anything not defined as a field in the record" do
|
31
|
-
r = TestRecord.new
|
31
|
+
r = Zoro::TestRecord.new
|
32
32
|
r.property_one = "foo"
|
33
33
|
r.another_name = "value"
|
34
34
|
r.fields["Property One"].must_equal "foo"
|