badcarl-integrity-jabber 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/integrity-jabber.gemspec +1 -1
- data/test/unit/integrity_jabber_test.rb +9 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/integrity-jabber.gemspec
CHANGED
@@ -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
|
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' => '
|
91
|
+
Integrity::Notifier::Jabber.new(@commit, @config.merge('stanza_limit' => '')).deliver!
|
85
92
|
end
|
86
93
|
|
87
94
|
end
|