capnotify 0.1.3pre → 0.1.4pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ module Capnotify
39
39
  _cset(:capnotify_appname) do
40
40
  name = [ fetch(:application, nil), fetch(:stage, nil) ].compact.join(" ")
41
41
  if fetch(:branch, nil)
42
- name = "name / #{ branch }"
42
+ name = "#{ name } / #{ branch }"
43
43
  end
44
44
  name
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Capnotify
2
- VERSION = "0.1.3pre"
2
+ VERSION = "0.1.4pre"
3
3
  end
@@ -178,6 +178,14 @@ describe Capnotify do
178
178
  config.set :branch, 'mybranch'
179
179
  end
180
180
 
181
+ it "should include the application name" do
182
+ config.capnotify_appname.should match(/SimpleApp/)
183
+ end
184
+
185
+ it "should include the stage name" do
186
+ config.capnotify_appname.should match(/production/)
187
+ end
188
+
181
189
  it "should contain the branch name" do
182
190
  config.capnotify_appname.should match(/mybranch/)
183
191
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capnotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3pre
4
+ version: 0.1.4pre
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors: