badcarl-integrity-jabber 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{integrity-jabber}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Carl Porth"]
@@ -77,11 +77,18 @@ class IntegrityJabberTest < Test::Unit::TestCase
77
77
  Integrity::Notifier::Jabber.new(@commit, @config).deliver!
78
78
  end
79
79
 
80
- def test_truncates_long_build
80
+ def test_configuration_with_stanza_limit
81
+ @commit.build.output = 'x' * 101
82
+ @client.expects(:send).with { |message| message.body.length == 100 }
83
+
84
+ Integrity::Notifier::Jabber.new(@commit, @config.merge('stanza_limit' => '100')).deliver!
85
+ end
86
+
87
+ def test_configuration_without_stanza_limit
81
88
  @commit.build.output = 'x' * 65537
82
89
  @client.expects(:send).with { |message| message.body.length == 65536 }
83
90
 
84
- Integrity::Notifier::Jabber.new(@commit, @config.merge('stanza_limit' => '65536')).deliver!
91
+ Integrity::Notifier::Jabber.new(@commit, @config.merge('stanza_limit' => '')).deliver!
85
92
  end
86
93
 
87
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: badcarl-integrity-jabber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Porth