capistrano-notifier 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'capistrano/notifier'
|
3
|
+
require 'capistrano/notifier/base'
|
4
|
+
|
5
|
+
describe Capistrano::Notifier::Base do
|
6
|
+
let(:configuration) { Capistrano::Configuration.new }
|
7
|
+
subject { described_class.new configuration }
|
8
|
+
|
9
|
+
it 'uses configured branch if not specified in configuration' do
|
10
|
+
configuration.load { set :branch, 'foo' }
|
11
|
+
subject.send(:branch).should == 'foo'
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'uses master branch if not specified in configuration' do
|
15
|
+
subject.send(:branch).should == 'master'
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- lib/capistrano/notifier/templates/mail.text.erb
|
135
135
|
- lib/capistrano/notifier/templates/mail.txt.erb
|
136
136
|
- lib/capistrano/notifier/version.rb
|
137
|
+
- spec/capistrano/notifier/base_spec.rb
|
137
138
|
- spec/capistrano/notifier/mail_spec.rb
|
138
139
|
- spec/capistrano/notifier/statsd_spec.rb
|
139
140
|
- spec/capistrano/notifier_spec.rb
|
@@ -163,6 +164,7 @@ signing_key:
|
|
163
164
|
specification_version: 3
|
164
165
|
summary: Capistrano Notifier
|
165
166
|
test_files:
|
167
|
+
- spec/capistrano/notifier/base_spec.rb
|
166
168
|
- spec/capistrano/notifier/mail_spec.rb
|
167
169
|
- spec/capistrano/notifier/statsd_spec.rb
|
168
170
|
- spec/capistrano/notifier_spec.rb
|