Sha256: 201567a19aab2f830c09fbaf620a8298c554fb887a0699b8f9ef4b6c3888db63
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 Bytes
Contents
require 'spec_helper' require 'debugging/q' describe 'q' do it "should output the same as p for a single arg" do expect( Paint.unpaint(capture_stdout{q /some object/}) ).to eq capture_stdout{p /some object/} end it "should output the same as p but for multiple args one one line, values separated by two spaces" do expect( Paint.unpaint(capture_stdout{ q 1, "1", 2..5, [], {:hallo => :du}, nil, true } ).chop ).to eq capture_stdout{ p 1, "1", 2..5, [], {:hallo => :du}, nil, true }.chop.gsub( "\n", ' ' ) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
debugging-2.1.0 | spec/q_spec.rb |
debugging-2.0.0 | spec/q_spec.rb |
debugging-1.1.2 | spec/q_spec.rb |
debugging-1.1.1 | spec/q_spec.rb |
debugging-1.1.0 | spec/q_spec.rb |