Sha256: 3c7a19e84b4fef442cb64cc801713b22fb07622a79ecef56da910239f8362742
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' describe Hash do describe "#each_with_end_flag" do it 'works' do passes = [] [:first => "1st", :second => "2nd", :third => "3rd"].each_with_end_flag do |item, flag| passes.push(item) if flag end passes.size.should == 1 end end describe "#not_empty?" do it "works" do {}.not_empty?.should == false {:test => "me"}.not_empty?.should == true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
corelib-0.0.7 | spec/hash/core_spec.rb |