Sha256: a01b502cbb5e8982089cb9f869b5820877e0bde3adfe7a3d18ed7bd4f75ab568
Contents?: true
Size: 463 Bytes
Versions: 8
Compression:
Stored size: 463 Bytes
Contents
require 'helper' require 'flipper/types/boolean' describe Flipper::Types::Boolean do it "defaults value to true" do boolean = Flipper::Types::Boolean.new boolean.value.should be(true) end it "allows overriding default value" do boolean = Flipper::Types::Boolean.new(false) boolean.value.should be(false) end it "returns true for nil value" do boolean = Flipper::Types::Boolean.new(nil) boolean.value.should be(true) end end
Version data entries
8 entries across 8 versions & 1 rubygems