Sha256: 304e79869ed0c793b581113259b66f6cfa4842e104758b0d4586dd303e1ec70d

Contents?: true

Size: 378 Bytes

Versions: 11

Compression:

Stored size: 378 Bytes

Contents

# ~*~ encoding: utf-8 ~*~
require File.expand_path(File.join(File.dirname(__FILE__), "helper"))

context "Precious::Helpers" do
  include Precious::Helpers

  test "extracting paths from URLs" do
    assert_nil extract_path('Eye-Of-Sauron')
    assert_equal 'Mordor', extract_path('Mordor/Sauron')
    assert_equal 'Mordor/Sauron', extract_path('Mordor/Sauron/Evil')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gollum-2.2.1 test/test_app_helpers.rb
gollum-2.2.0 test/test_app_helpers.rb
gollum-2.1.10 test/test_app_helpers.rb
gollum-2.1.9 test/test_app_helpers.rb
gollum-2.1.8 test/test_app_helpers.rb
gollum-2.1.7 test/test_app_helpers.rb
gollum-2.1.6 test/test_app_helpers.rb
gollum-2.1.4 test/test_app_helpers.rb
gollum-2.1.3 test/test_app_helpers.rb
gollum-2.1.2 test/test_app_helpers.rb
gollum-2.1.0 test/test_app_helpers.rb