Skip to content

Commit e6e542c

Browse files
committed
removed Contact.messages and test
1 parent 76dc6fe commit e6e542c

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/spark_api/models/contact.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ def listing_carts(arguments = {})
4545
@listing_carts ||= ListingCart.collect(connection.get("/contacts/#{self.Id}/listingcarts", arguments))
4646
end
4747

48-
def messages(arguments = {})
49-
@messages ||= Message.collect(connection.get("/contacts/#{self.Id}/messages", arguments))
50-
end
51-
5248
def comments(arguments = {})
5349
@comments ||= Comment.collect(connection.get("/contacts/#{self.Id}/comments", arguments))
5450
end

spec/unit/spark_api/models/contact_spec.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,6 @@
236236

237237
end
238238

239-
context "/messages", :support do
240-
241-
it "should get all of a contact's messages" do
242-
s = stub_api_get("/contacts/#{contact_id}/messages", "messages/get.json")
243-
messages = Contact.new(:Id => contact_id).messages
244-
messages.size.should eq(2)
245-
s.should have_been_requested
246-
end
247-
end
248239
end
249240

250241
context "/my/contact", :support do

0 commit comments

Comments
 (0)