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.2.10 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.11 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.12 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.3 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.4 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.7 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.8 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.2.9 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.0 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.1 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.10 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.11 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.12 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.13 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.14 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.15 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.16 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.17 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.2 vendor/gems/git-style-binaries/test/git_style_binary_test.rb
auser-poolparty-1.3.3 vendor/gems/git-style-binaries/test/git_style_binary_test.rb