spec/rackamole/alert/twitt_spec.rb in rackamole-0.2.7 vs spec/rackamole/alert/twitt_spec.rb in rackamole-0.2.8

- old
+ new

@@ -1,11 +1,11 @@ require File.join(File.dirname(__FILE__), %w[.. .. spec_helper]) require 'chronic' describe Rackamole::Alert::Twitt do before( :each ) do - @alert = Rackamole::Alert::Twitt.new( nil, 'fernand', "blee" ) + @alert = Rackamole::Alert::Twitt.new( nil, 'fernand', 'blee' ) end it "should truncate a message correctly" do @alert.send( :truncate, "a"*141 ).should == "a"*137 + '...' end @@ -37,10 +37,10 @@ Rackamole::Alert::Twitt.should_receive( :new ).with( nil, 'blee', 'duh').once.and_return( twitt ) # client.should_receive( :new ).once.and_return( client ) twitt.should_receive( :send_alert ).with( @args ).once.and_return( "yeah" ) - Rackamole::Alert::Twitt.deliver_alert( nil, "blee", "duh", @args ) + Rackamole::Alert::Twitt.deliver_alert( nil, { :twitter => { :username => "blee", :password => "duh" } }, @args ) end it "should twitt a feature alert correctly" do client = stub( Twitter::Client ) \ No newline at end of file