Skip to content

Commit

Permalink
Take back String#extract_class test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fesplugas committed Mar 8, 2012
1 parent 4005478 commit b5e8616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions test/dummy/app/models/sucursal_bancaria.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class SucursalBancaria
end
9 changes: 0 additions & 9 deletions test/lib/support/string_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ class StringTest < ActiveSupport::TestCase
assert_equal "delayed/tasks", "typus/delayed/tasks".remove_prefix
end

=begin
test "extract_class" do
class SucursalBancaria; end
Typus::Configuration.models_constantized = { "Post" => Post,
"TypusUser" => TypusUser,
"Delayed::Task" => Delayed::Task,
"SucursalBancaria" => SucursalBancaria }
assert_equal Post, "admin/posts".extract_class
assert_equal TypusUser, "admin/typus_users".extract_class
assert_equal Delayed::Task, "admin/delayed/tasks".extract_class
assert_equal SucursalBancaria, "admin/sucursales_bancarias".extract_class
end
=end

test "extract_singular_class" do
assert_equal CustomerData, "admin/customer_data".extract_singular_class
Expand Down

0 comments on commit b5e8616

Please sign in to comment.