spec/rackamole/alert/emole_spec.rb in rackamole-0.2.4 vs spec/rackamole/alert/emole_spec.rb in rackamole-0.2.5
- old
+ new
@@ -22,28 +22,28 @@
describe "#alert" do
it "should send a feature email correctly" do
# @expected.subject = "[M()le] (Feature) -Test@Fred- for user Fernand"
@expected.body = feature_body
- Rackamole::Alert::Emole.deliver_alert( {:from => @from, :to => @to}, @args ).should == @expected.body_port.to_s
+ Rackamole::Alert::Emole.deliver_alert( nil, {:from => @from, :to => @to}, @args ).should == @expected.body_port.to_s
end
it "should send a perf email correctly" do
@args[:type] = Rackamole.perf
@args[:request_time] = 10.0
# @expected.subject = "[M()le] (Performance:10.0) -Test@Fred- for user Fernand"
@expected.body = perf_body
- Rackamole::Alert::Emole.deliver_alert( {:from => @from, :to => @to }, @args ).should == @expected.body_port.to_s
+ Rackamole::Alert::Emole.deliver_alert( nil, {:from => @from, :to => @to }, @args ).should == @expected.body_port.to_s
end
it "should send a fault email correctly" do
@args[:type] = Rackamole.fault
@args[:fault] = 'Oh Snap!'
@args[:stack] = ['fred', 'blee']
@args[:params] = { :id => 10 }
# @expected.subject = "[M()le] (Fault) -Test@Fred- for user Fernand"
@expected.body = fault_body
- Rackamole::Alert::Emole.deliver_alert( { :from => @from, :to => @to }, @args ).should == @expected.body_port.to_s
+ Rackamole::Alert::Emole.deliver_alert( nil, { :from => @from, :to => @to }, @args ).should == @expected.body_port.to_s
end
end
\ No newline at end of file