Sha256: 63b5efa878a1f97ad94729ba29ee9d80bd80e7202aa19bbea9eeb02fe26b4730
Contents?: true
Size: 655 Bytes
Versions: 15
Compression:
Stored size: 655 Bytes
Contents
# encoding: utf-8 # # This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun@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
15 entries across 15 versions & 1 rubygems