Sha256: e6b6bc7c35a3d701cee4d824b5ae3b99ec632aef0340db36c899738c849675e1
Contents?: true
Size: 684 Bytes
Versions: 5
Compression:
Stored size: 684 Bytes
Contents
require 'helper' require 'flipper/types/percentage_of_actors' describe Flipper::Types::Percentage do subject { described_class.new(5) } it_should_behave_like 'a percentage' describe "#eql?" do it "returns true for same class and value" do subject.eql?(described_class.new(subject.value)).should be_true end it "returns false for different value" do subject.eql?(described_class.new(subject.value + 1)).should be_false end it "returns false for different class" do subject.eql?(Object.new).should be_false end it "is aliased to ==" do (subject == described_class.new(subject.value)).should be_true end end end
Version data entries
5 entries across 5 versions & 1 rubygems