chiketto 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/lib/chiketto/attribute.rb +1 -0
- data/lib/chiketto/organizer.rb +2 -0
- data/lib/chiketto/version.rb +1 -1
- data/test/attribute_test.rb +6 -0
- data/test/organizer_test.rb +14 -6
- 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: d23593990a24a172ea34bac159a227002c896396
|
4
|
+
data.tar.gz: 4867c5aaad91c175355e671906ac8dae68c0aefd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85b4105891effca2662857e1c9635268075f1ff81e27837765fd5d993ccc133e4809d1028bc168f921c430cded253768382fa73c64d24e3d39c46aac47179a17
|
7
|
+
data.tar.gz: a49e03127c0b8c4332bf2e6d52bea5724e419bd46506c61a81ff5b96aac5506c2785e1592800a18d3e1e73613ec9aa4cb697b3e7e9a6e6429f3a6766c07b2e8e
|
data/.travis.yml
CHANGED
data/lib/chiketto/attribute.rb
CHANGED
data/lib/chiketto/organizer.rb
CHANGED
data/lib/chiketto/version.rb
CHANGED
data/test/attribute_test.rb
CHANGED
@@ -27,4 +27,10 @@ class AttributeTest < MiniTest::Test
|
|
27
27
|
attrib = Chiketto::Attribute.new
|
28
28
|
assert_equal '', attrib.text
|
29
29
|
end
|
30
|
+
|
31
|
+
def test_attribute_handles_nil_correctly
|
32
|
+
attrib = Chiketto::Attribute.new nil
|
33
|
+
assert_equal '', attrib.text
|
34
|
+
assert_equal '', attrib.html
|
35
|
+
end
|
30
36
|
end
|
data/test/organizer_test.rb
CHANGED
@@ -3,10 +3,10 @@ require 'test_helper'
|
|
3
3
|
class OrganizerTest < MiniTest::Test
|
4
4
|
def setup
|
5
5
|
@organizer = Chiketto::Organizer.new 'description' => {
|
6
|
-
'text' => 'Description of the Example Organizer',
|
6
|
+
'text' => 'Description of the Example Organizer',
|
7
7
|
'html' => '<p>Description of the Example Organizer</p>'
|
8
|
-
},
|
9
|
-
'id' => '1667263718',
|
8
|
+
},
|
9
|
+
'id' => '1667263718',
|
10
10
|
'name' => 'Example Organizer'
|
11
11
|
end
|
12
12
|
|
@@ -21,10 +21,18 @@ class OrganizerTest < MiniTest::Test
|
|
21
21
|
assert_respond_to @organizer.description, :text
|
22
22
|
end
|
23
23
|
|
24
|
-
def test_can_create_new_organizer
|
24
|
+
# def test_can_create_new_organizer
|
25
|
+
# VCR.use_cassette 'organizer-create-new' do
|
26
|
+
# organizer = Chiketto::Organizer.create name: 'New Organizer'
|
27
|
+
# assert_kind_of Fixnum, organizer
|
28
|
+
# end
|
29
|
+
# end
|
30
|
+
|
31
|
+
def test_cannot_create_an_existing_organizer
|
25
32
|
VCR.use_cassette 'organizer-create' do
|
26
|
-
|
27
|
-
|
33
|
+
assert_raises RuntimeError do
|
34
|
+
Chiketto::Organizer.create name: 'Test Organizer'
|
35
|
+
end
|
28
36
|
end
|
29
37
|
end
|
30
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chiketto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Radford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|