Sha256: c74d5f1b39dcc338a4d7a1eecaddb689397d1de71a673820f6fdda753997a0ab
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
require 'spec_helper' describe TablePrint::Returnable do it "returns its initialized value from its to_s method" do r = TablePrint::Returnable.new("foobar") r.to_s.should == "foobar" end it "passes #set through to TablePrint::Config" do TablePrint::Config.should_receive(:set).with(Object, [:foo]) r = TablePrint::Returnable.new r.set(Object, :foo) end it "passes #clear through to TablePrint::Config" do TablePrint::Config.should_receive(:clear).with(Object) r = TablePrint::Returnable.new r.clear(Object) end it "passes #config_for through to TablePrint::Config.for" do TablePrint::Config.should_receive(:for).with(Object) r = TablePrint::Returnable.new r.config_for(Object) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
table_print-1.0.0 | spec/returnable_spec.rb |