spec/iqeo/hostspec_spec.rb in iqeo-hostspec-0.1.0.pre2 vs spec/iqeo/hostspec_spec.rb in iqeo-hostspec-0.1.0
- old
+ new
@@ -1,5 +1,6 @@
+require 'spec_helper'
require 'iqeo/hostspec'
include Iqeo::Hostspec
describe Hostspec do
@@ -434,11 +435,11 @@
hs.each.class.should eq Enumerator
end
it 'responds to Enumerable methods' do
hs = Hostspec.new '10.20.30.40/24'
- hs.all? { |i| i.start_with? '10' }.should be_true
- hs.any? { |i| i.end_with? '255' }.should be_true
+ hs.all? { |i| i.start_with? '10' }.should eq true
+ hs.any? { |i| i.end_with? '255' }.should eq true
end
it 'can calculate size for simple specs' do
(0..32).each do |masklen|
hs = Hostspec.new "10.20.30.40/#{masklen}"