spec/notifier_spec.rb in simple_deploy-0.5.4 vs spec/notifier_spec.rb in simple_deploy-0.5.5
- old
+ new
@@ -18,10 +18,19 @@
@notifier = SimpleDeploy::Notifier.new :stack_name => 'stack_name',
:environment => 'test',
:logger => @logger_mock
end
- it "should include the github app & chef links if attributes present" do
+ it "should support a basic start message" do
+ campfire_mock = mock 'campfire mock'
+
+ SimpleDeploy::Notifier::Campfire.should_receive(:new).and_return campfire_mock
+ campfire_mock.should_receive(:send).with "Deployment to stack_name started."
+
+ @notifier.send_deployment_start_message
+ end
+
+ it "should include the github app & chef links in the completed message" do
stack_mock = mock 'stack'
campfire_mock = mock 'campfire mock'
environment_mock = mock 'environment mock'
@config_mock.should_receive(:environment).
with('test').