spec/fog/bouncer/group_spec.rb in fog-bouncer-0.2.5 vs spec/fog/bouncer/group_spec.rb in fog-bouncer-0.2.6

- old
+ new

@@ -19,10 +19,10 @@ @group = @doorlist.groups.find { |g| g.name == 'douchebag' } end describe "use" do it "should include any source definition specified" do - @group.sources.find { |s| s.source == "0.0.0.0/0" && s.protocols.find { |p| p.type == "icmp" && p.from == 8 && p.to == 0 } }.wont_be_nil + @group.sources.find { |s| s.source == "0.0.0.0/0" && s.protocols.find { |p| p.type == "icmp" && p.from == 0 && p.to == 8 } }.wont_be_nil end it "should not create duplicate sources" do @group.sources.select { |s| s.source == "0.0.0.0/0" }.size.must_equal 1 end