Sha256: c5e0b14e0ca76a95c3905167b35a0e28daa24734b804bc21e500af4be94b1535

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

require "spec_helper"
require "pd"

describe Kernel do
	describe "#pd" do
		it "prints message to stdout" do
			message = capture :stdout do
				pd "foo", "bar"
			end
			message.should =~ /"foo" "bar"/
		end
	end

	describe "#phr" do
		it "print a horizonal line" do
			message = capture :stdout do
				phr "foo"
			end
			message.should =~ /======.*foo/
		end
	end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pd-1.0.3 spec/pd_spec.rb
pd-1.0.2 spec/pd_spec.rb
pd-1.0.1 spec/pd_spec.rb