bronto 0.0.9 → 0.1.0

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.
@@ -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.class.api_key
14
+ api_key = api_key || self.api_key
15
15
 
16
16
  resp = request(:read, api_key) do
17
17
  soap.body = body
@@ -1,3 +1,3 @@
1
1
  module Bronto
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
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
 
@@ -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.9
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-05-30 00:00:00.000000000 Z
12
+ date: 2012-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon