Skip to content

Commit

Permalink
Merge pull request #2 from carlosdp/mediatests
Browse files Browse the repository at this point in the history
Add standard tests to Media/Message
  • Loading branch information
dougblack committed Sep 18, 2013
2 parents cc854cc + 39a8c59 commit 2905806
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/rest/message_spec.rb
@@ -0,0 +1,12 @@
require 'spec_helper'

describe Twilio::REST::Message do
before do
@message = Twilio::REST::Message.new('someUri', 'someClient')
end

it 'sets up a media resources object' do
@message.should respond_to(:media)
@message.media.instance_variable_get('@path').should == 'someUri/Media'
end
end

0 comments on commit 2905806

Please sign in to comment.