Sha256: dbacf3a1fb67de3135993107f00414f4a38b74756be24b74c5b68e6a72262bca
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
require 'helper' describe Flipper::Toggle do let(:key) { double('Key') } let(:adapter) { double('Adapter', :read => '22') } let(:gate) { double('Gate', :adapter => adapter, :key => key) } subject { toggle = Flipper::Toggle.new(gate) toggle.stub(:value => '22') # implemented in subclass toggle } describe "#inspect" do it "returns easy to read string representation" do string = subject.inspect string.should match(/Flipper::Toggle/) string.should match(/gate=/) string.should match(/value=22/) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flipper-0.4.0 | spec/flipper/toggle_spec.rb |