test/permalink/permalink_test.rb in permalink-2.1.0 vs test/permalink/permalink_test.rb in permalink-3.0.0
- old
+ new
@@ -3,20 +3,24 @@
require "test_helper"
class PermalinkTest < Minitest::Test
{
"This IS a Tripped out title!!.!1 (well/ not really)" => "this-is-a-tripped-out-title-1-well-not-really", # rubocop:disable Layout/LineLength
- '////// meph1sto r0x ! \\\\\\' => "meph1sto-r0x",
+ "////// meph1sto r0x ! \\\\\\" => "meph1sto-r0x",
"āčēģīķļņū" => "acegiklnu",
"中文測試 chinese text" => "chinese-text",
'some-)()()-ExtRa!/// .data==?> to \/\/test' => "some-extra-data-to-test",
"http://simplesideias.com.br/tags/" => "http-simplesideias-com-br-tags",
"Don't Repeat Yourself (DRY)" => "dont-repeat-yourself-dry",
"Text\nwith\nline\n\n\tbreaks" => "text-with-line-breaks",
"can't do it" => "cant-do-it",
"i'm a dog" => "im-a-dog"
}.each do |from, to|
test "creates permalink for #{from}" do
- assert_equal to, Permalink.generate(from)
+ assert_equal to, Permalink.call(from)
end
+ end
+
+ test "returns active record module" do
+ assert_equal Permalink::ActiveRecord, Permalink.active_record
end
end