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

Version Path
auser-poolparty-1.3.4 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.5 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.6 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.7 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.8 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
fairchild-poolparty-1.2.12 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
fairchild-poolparty-1.3.17 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
fairchild-poolparty-1.3.5 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.10 test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.3 test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.4 test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.5 test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.6 test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.7 test/git_style_binary_test.rb
jashmenn-git-style-binaries-0.1.9 test/git_style_binary_test.rb
git-style-binaries-0.2.1 test/git_style_binary_test.rb
git-style-binaries-0.2.0 test/git_style_binary_test.rb
poolparty-1.6.9 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
poolparty-1.6.8 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
poolparty-1.6.7 vendor/gems/git-style-binaries/test/git_style_binary_test.rb