Sha256: 82eff87de711869406eafefb744dc5d0bd8c4cb65243b10752f6bac4e97d900e

Contents?: true

Size: 575 Bytes

Versions: 7

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'
require 'reponaut/ext/bool'

module Reponaut
  module Ext
    describe Object do
      describe "#bool?" do
        it "is not a boolean value" do
          expect(Array.new.bool?).to be false
        end
      end
    end

    describe TrueClass do
      describe "#bool?" do
        it "is a boolean value" do
          expect(true.bool?).to be true
        end
      end
    end

    describe FalseClass do
      describe "#bool?" do
        it "is a boolean value" do
          expect(false.bool?).to be true
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reponaut-2.1.1 spec/reponaut/bool_spec.rb
reponaut-2.1.0 spec/reponaut/bool_spec.rb
reponaut-2.0.0 spec/reponaut/bool_spec.rb
reponaut-1.2.0 spec/reponaut/bool_spec.rb
reponaut-1.1.1 spec/reponaut/bool_spec.rb
reponaut-1.1.0 spec/reponaut/bool_spec.rb
reponaut-1.0.1 spec/reponaut/bool_spec.rb