Sha256: dd3dcbbb6b444d648d7b0c22a8c7210a74abbb249dfcc1261ac7d47d5325b478
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
shared_examples_for "object with state" do let(:input_opts) { {:state => "disabled"} } it "should initialize" do subject.state.should == "disabled" end it "should enable" do subject.gui.should_receive(:enabled).with(true) subject.state = nil subject.state.should == nil end it "should disable" do subject.gui.should_receive(:enabled).with(false) subject.state = "disabled" subject.state.should == "disabled" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | spec/shoes/shared_examples/state.rb |