spec/rackamole/alert/twitt_spec.rb in rackamole-0.2.5 vs spec/rackamole/alert/twitt_spec.rb in rackamole-0.2.6

- 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( '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 @@ -33,14 +33,14 @@ it "should twitt a feature alert using class method correctly" do twitt = mock( Rackamole::Alert::Twitt ) client = Twitter::Client.stub!( :new ) - Rackamole::Alert::Twitt.should_receive( :new ).with( 'blee', 'duh').once.and_return( twitt ) + 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( "blee", "duh", @args ) + Rackamole::Alert::Twitt.deliver_alert( nil, "blee", "duh", @args ) end it "should twitt a feature alert correctly" do client = stub( Twitter::Client ) \ No newline at end of file