Sha256: 45c07dfb4969c036253b969b07a3f4416c8e43c3255b5224b5fad1970fa6a5c3
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'helper' require 'flipper/key' describe Flipper::Key do subject { described_class.new(:foo, :bar) } it "initializes with feature_name and gate_key" do key = described_class.new(:foo, :bar) key.should be_instance_of(described_class) end describe "#to_s" do it "returns feature_name and gate_key joined by separator" do subject.to_s.should eq("foo#{subject.separator}bar") end end describe "#inspect" do it "returns easy to read string representation" do subject.inspect.should eq("#<Flipper::Key:#{subject.object_id} feature_name=:foo, gate_key=:bar>") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flipper-0.4.0 | spec/flipper/key_spec.rb |