blather 0.4.12 → 0.4.13
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.
@@ -71,7 +71,7 @@ describe Blather::Stanza::Iq::DiscoInfo do
|
|
71
71
|
di.features.size.must_equal 0
|
72
72
|
di.features = ["feature1"]
|
73
73
|
di.features.size.must_equal 1
|
74
|
-
di.features += [Blather::Stanza::Iq::DiscoInfo::Feature.new
|
74
|
+
di.features += [Blather::Stanza::Iq::DiscoInfo::Feature.new("feature2")]
|
75
75
|
di.features.size.must_equal 2
|
76
76
|
di.features = nil
|
77
77
|
di.features.size.must_equal 0
|
@@ -196,4 +196,11 @@ describe Blather::Stanza::Iq::Command do
|
|
196
196
|
r.form.type = :form
|
197
197
|
r.form.type.must_equal :form
|
198
198
|
end
|
199
|
+
|
200
|
+
it 'ensures the form child is a child of command' do
|
201
|
+
r = Blather::Stanza::Iq::Command.new
|
202
|
+
r.form
|
203
|
+
r.command.xpath('ns:x', :ns => Blather::Stanza::X.registered_ns).wont_be_empty
|
204
|
+
r.xpath('ns:x', :ns => Blather::Stanza::X.registered_ns).must_be_empty
|
205
|
+
end
|
199
206
|
end
|
@@ -146,4 +146,10 @@ describe Blather::Stanza::Message do
|
|
146
146
|
r.form.type = :form
|
147
147
|
r.form.type.must_equal :form
|
148
148
|
end
|
149
|
-
|
149
|
+
|
150
|
+
it 'ensures the form child is a direct child' do
|
151
|
+
r = Blather::Stanza::Message.new
|
152
|
+
r.form
|
153
|
+
r.xpath('ns:x', :ns => Blather::Stanza::X.registered_ns).wont_be_empty
|
154
|
+
end
|
155
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 13
|
10
|
+
version: 0.4.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Smick
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-10 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|