Sha256: 314ad8e8e9dfce15f9014857be44179d2117bdf624c26908874aa4e70c12c5be
Contents?: true
Size: 568 Bytes
Versions: 54
Compression:
Stored size: 568 Bytes
Contents
$: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib")) require 'amalgalite' require 'amalgalite/boolean' describe Amalgalite::Boolean do %w[ True Y Yes T 1 ].each do |v| it "converts #{v} to true" do Amalgalite::Boolean.to_bool(v).should == true end end %w[ False F f No n 0 ].each do |v| it "converts #{v} to false " do Amalgalite::Boolean.to_bool(v).should == false end end %w[ other things nil ].each do |v| it "converts #{v} to nil" do Amalgalite::Boolean.to_bool(v).should == nil end end end
Version data entries
54 entries across 54 versions & 1 rubygems