bronto 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bronto/delivery.rb +1 -1
- data/lib/bronto/version.rb +1 -1
- data/test/contact_test.rb +0 -11
- data/test/delivery_test.rb +1 -1
- metadata +2 -2
data/lib/bronto/delivery.rb
CHANGED
@@ -11,7 +11,7 @@ module Bronto
|
|
11
11
|
def self.find(filter = Bronto::Filter.new, page_number = 1, include_recipients = false, include_content = false, api_key = nil)
|
12
12
|
body = { filter: filter.to_hash, page_number: page_number, include_recipients: include_recipients,
|
13
13
|
include_content: include_content }
|
14
|
-
api_key = api_key || self.
|
14
|
+
api_key = api_key || self.api_key
|
15
15
|
|
16
16
|
resp = request(:read, api_key) do
|
17
17
|
soap.body = body
|
data/lib/bronto/version.rb
CHANGED
data/test/contact_test.rb
CHANGED
@@ -19,17 +19,6 @@ class ContactTest < Test::Unit::TestCase
|
|
19
19
|
assert_equal 0, @contact.errors.count
|
20
20
|
end
|
21
21
|
|
22
|
-
should "get error on duplicate contact" do
|
23
|
-
@contact.save
|
24
|
-
|
25
|
-
c2 = Bronto::Contact.new(email: @contact.email)
|
26
|
-
c2.save
|
27
|
-
|
28
|
-
assert_equal nil, c2.id
|
29
|
-
assert_equal 1, c2.errors.count
|
30
|
-
assert_equal "305", c2.errors.messages.keys.first
|
31
|
-
end
|
32
|
-
|
33
22
|
should "destroy a contact" do
|
34
23
|
@contact.save
|
35
24
|
|
data/test/delivery_test.rb
CHANGED
@@ -35,8 +35,8 @@ class DeliveryTest < Test::Unit::TestCase
|
|
35
35
|
end
|
36
36
|
|
37
37
|
should "destroy a delivery" do
|
38
|
-
skip "API says we should be able to delete a delivery, but well-formed message returns an error."
|
39
38
|
@delivery.message_id = @message.id
|
39
|
+
@delivery.add_recipient(@contact)
|
40
40
|
@delivery.save
|
41
41
|
|
42
42
|
assert_nothing_raised do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bronto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|