Sha256: 43cd46d78f505e9b6cce82f299874808e52cafa4e2a2cc9d196d662174a03d12
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
# encoding: utf-8 # # This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun_panda@cowtech.it>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # require "spec_helper" describe Lazier::Boolean do before(:all) do ::Lazier.load! end describe "#to_i" do it "should return 1 for true" do expect(true.to_i).to eq(1) end it "should return 0 for false" do expect(false.to_i).to eq(0) end end describe "#value" do it "should return self" do expect(true.value).to be_true expect(false.value).to be_false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lazier-3.3.6 | spec/lazier/boolean_spec.rb |