Sha256: 9a954e1a4313209b1d38375024b7371799416e4eda506e4c97b285a6eed20bc1
Contents?: true
Size: 403 Bytes
Versions: 48
Compression:
Stored size: 403 Bytes
Contents
describe "Kernel#p" do before { extend OutputSilencer } it "returns nil if called with no arguments" do silence_stdout { p.should == nil } end it "returns its argument if called with one argument" do silence_stdout { p(123).should == 123 } end it "returns all arguments as an Array if called with multiple arguments" do silence_stdout { p(1,2,3).should == [1,2,3] } end end
Version data entries
48 entries across 48 versions & 3 rubygems