Sha256: 34addf0a9d317b807b10e9adc6b5033d20a74f3f409c799fc871abce25c08648
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
describe ActsAsChain do let(:object) { class FakeObject acts_as_chain :fake1, :fake2 end FakeObject.new } it "should be chainable" do object.fake1("value").fake1.should eq("value") end it "should have a get method" do object.fake1.should be_nil end it "should be able to handle more than one chain" do object.fake1("one").fake2("two") object.fake1.should eq("one") object.fake2.should eq("two") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_chain-1.0.1 | spec/acts_as_chain_spec.rb |
acts_as_chain-1.0.0 | spec/acts_as_chain_spec.rb |