soup 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/soup.rb +4 -0
- data/test/multi_soup_backend_test.rb +7 -0
- metadata +4 -4
data/Rakefile
CHANGED
data/lib/soup.rb
CHANGED
@@ -70,4 +70,11 @@ context "A Soup with multiple backends" do
|
|
70
70
|
assert_not_nil @soup_two["snip"]
|
71
71
|
end
|
72
72
|
end
|
73
|
+
|
74
|
+
should "return all snips" do
|
75
|
+
@soup_one << {:name => "alpha"}
|
76
|
+
@soup_two << {:name => "beta"}
|
77
|
+
assert_equal 2, @soup.all_snips.length
|
78
|
+
assert_equal %w(alpha beta), @soup.all_snips.map { |s| s.name }
|
79
|
+
end
|
73
80
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 8
|
10
|
+
version: 1.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Adam
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-12 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|