test/test_response.rb in bobes-textmagic-0.2.0 vs test/test_response.rb in bobes-textmagic-0.2.1
- old
+ new
@@ -30,21 +30,17 @@
'parts_count' => @parts_count
}
@response.extend TextMagic::API::Response::Send
end
- should 'allow access to inverted message_id hash' do
- @response.message_id_hash.should == @message_id.invert
- end
-
should 'allow access to message_ids array' do
@response.message_ids.should == ['141421', '173205']
end
should 'allow access to message_id for a given phone number' do
- @response.message_id('999314159265').should == '141421'
- @response.message_id('999271828182').should == '173205'
+ @response['999314159265'].should == '141421'
+ @response['999271828182'].should == '173205'
end
should 'allow access to sent_text' do
@response.sent_text.should == @text
end
@@ -140,9 +136,13 @@
@response.unread.should == @unread
end
should 'allow access to messages array' do
@response.messages.should == @messages
+ end
+
+ should 'allow access to message_ids array' do
+ @response.message_ids.should == ['141421', '173205']
end
should 'allow access to message_id for all messages' do
@response.messages.first.message_id.should == '141421'
end