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

Version Path
flipper-0.7.0.beta3 spec/flipper/types/boolean_spec.rb
flipper-0.7.0.beta2 spec/flipper/types/boolean_spec.rb
flipper-0.7.0.beta1 spec/flipper/types/boolean_spec.rb
flipper-0.6.3 spec/flipper/types/boolean_spec.rb
flipper-0.6.2 spec/flipper/types/boolean_spec.rb
flipper-0.6.1 spec/flipper/types/boolean_spec.rb
flipper-0.6.0 spec/flipper/types/boolean_spec.rb
flipper-0.5.0 spec/flipper/types/boolean_spec.rb