Sha256: 079b5ee689bbea12143bc0b0d48fc119d14bea701ec4ee1cb3ae02c422095467
Contents?: true
Size: 1006 Bytes
Versions: 68
Compression:
Stored size: 1006 Bytes
Contents
require File.dirname(__FILE__) + "/test_helper.rb" class GitStyleBinariesTest < Test::Unit::TestCase context "parsing basenames" do should "accurately parse basenames" do assert_equal "wordpress", GitStyleBinary.basename("bin/wordpress") assert_equal "wordpress", GitStyleBinary.basename("bin/wordpress-post") assert_equal "wordpress", GitStyleBinary.basename("wordpress-post") end should "get the current command name" do # doesn't really apply any more b/c it calls 'current' which is never the # current when your running rake_test_loader.rb # # assert_equal "wordpress", GitStyleBinary.current_command_name("bin/wordpress", ["--help"]) # assert_equal "post", GitStyleBinary.current_command_name("bin/wordpress-post", ["--help"]) # assert_equal "post", GitStyleBinary.current_command_name("bin/wordpress post", ["--help"]) #assert_equal "post", GitStyleBinary.current_command_name("bin/wordpress post", []) end end end
Version data entries
68 entries across 68 versions & 5 rubygems