Sha256: a93328e347ede00ebf7881c7a8491c9cff0be37bc629ea6ce8ba23717008ff26
Contents?: true
Size: 657 Bytes
Versions: 6
Compression:
Stored size: 657 Bytes
Contents
# encoding: utf-8 # # This file is part of the lazier gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>. # 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
6 entries across 6 versions & 1 rubygems