Skip to content

Commit

Permalink
Updated hosted gem to version 2.0.4, updated README, and added SMS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Conroy committed Mar 11, 2010
1 parent 800c906 commit 03462ce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and much more. See http://www.twilio.com/docs for more information.

### Gemcutter

$ sudo gem install twiliolib -s http://gemcutter.org
$ sudo gem install twiliolib

### Manual Installation
To use the rake command to build the gem and
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'rake/gempackagetask'

spec = Gem::Specification.new do |s|
s.name = "twiliolib"
s.version = "2.0.3"
s.version = "2.0.4"
s.author = "Twilio"
s.email = "[email protected]"
s.homepage = "http://www.twilio.com/docs"
Expand Down
8 changes: 8 additions & 0 deletions tests/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,14 @@ def bad_attr(verb)
bad_append @s
end

it "should send sms to to and from from with status callback" do
@r = Twilio::Response.new
@r.append(Twilio::Sms.new("Hello, World", :to => 1231231234,
:from => 3453453456, :statusCallback => "example.com?id=34&action=hey"))
@r.respond.should == '<Response><Sms from="3453453456" statusCallback="example.com?id=34&amp;action=hey" to="1231231234">Hello, World</Sms></Response>'
end


it "add attribute" do
@r = Twilio::Sms.new
@r.set :foo => 'bar'
Expand Down

0 comments on commit 03462ce

Please sign in to comment.