Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ed9578dfe4
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.507 kB
require "minitest/autorun"
require "pastejour/cli"
require "stringio"
module Pastejour
class CliTest < MiniTest::Unit::TestCase
def pastejour *args
stdout = StringIO.new
cli = Cli.new stdout, args
[cli, stdout.string]
end
def test_help
opts, out = pastejour "--help"
assert !opts.run?, "shouldn't run when asking for help"
end
def test_version
_, out = pastejour "--version"
assert_equal Pastejour::VERSION, out.strip
end
end
end
Jump to Line
Something went wrong with that request. Please try again.