Sha256: a1f24dfe4658fdaa6e28cf1a3c567fe2e85562d928af4d8df5e5ce4cd5f86630

Contents?: true

Size: 1.59 KB

Versions: 25

Compression:

Stored size: 1.59 KB

Contents

# encoding: utf-8

module InflectorTestCases

  CamelToUnderscore = {
    "Product"               => "product",
    "SpecialGuest"          => "special_guest",
    "ApplicationController" => "application_controller",
    "Area51Controller"      => "area51_controller"
  }

  UnderscoreToLowerCamel = {
    "product"                => "product",
    "special_guest"          => "specialGuest",
    "application_controller" => "applicationController",
    "area51_controller"      => "area51Controller"
  }

  CamelToUnderscoreWithoutReverse = {
    "HTMLTidy"              => "html_tidy",
    "HTMLTidyGenerator"     => "html_tidy_generator",
    "FreeBSD"               => "free_bsd",
    "HTML"                  => "html",
  }

  CamelWithModuleToUnderscoreWithSlash = {
    "Admin::Product" => "admin/product",
    "Users::Commission::Department" => "users/commission/department",
    "UsersSection::CommissionDepartment" => "users_section/commission_department",
  }

  UnderscoreToHuman = {
    "employee_salary" => "Employee salary",
    "employee_id"     => "Employee",
    "underground"     => "Underground"
  }

  MixtureToTitleCase = {
    'active_record'       => 'Active Record',
    'ActiveRecord'        => 'Active Record',
    'action web service'  => 'Action Web Service',
    'Action Web Service'  => 'Action Web Service',
    'Action web service'  => 'Action Web Service',
    'actionwebservice'    => 'Actionwebservice',
    'Actionwebservice'    => 'Actionwebservice',
    "david's code"        => "David's Code",
    "David's code"        => "David's Code",
    "david's Code"        => "David's Code"
  }
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
gorillib-0.6.0 spec/gorillib/string/inflector_test_cases.rb
gorillib-0.5.2 spec/gorillib/string/inflector_test_cases.rb
gorillib-0.5.0 spec/gorillib/string/inflector_test_cases.rb
gorillib-0.4.2 spec/gorillib/string/inflector_test_cases.rb
gorillib-0.4.2pre spec/gorillib/string/inflector_test_cases.rb
gorillib-0.4.0pre spec/gorillib/string/inflector_test_cases.rb
gorillib-0.4.1pre spec/gorillib/string/inflector_test_cases.rb
gorillib-0.1.11 spec/string/inflector_test_cases.rb
gorillib-0.1.9 spec/string/inflector_test_cases.rb
gorillib-0.1.8 spec/string/inflector_test_cases.rb
gorillib-0.1.7 spec/string/inflector_test_cases.rb
gorillib-0.1.6 spec/string/inflector_test_cases.rb
gorillib-0.1.5 spec/string/inflector_test_cases.rb
gorillib-0.1.4 spec/string/inflector_test_cases.rb
gorillib-0.1.3 spec/string/inflector_test_cases.rb
gorillib-0.1.2 spec/string/inflector_test_cases.rb
gorillib-0.1.1 spec/string/inflector_test_cases.rb
gorillib-0.1.0 spec/string/inflector_test_cases.rb
gorillib-0.0.8 spec/string/inflector_test_cases.rb
gorillib-0.0.7 test/string/inflector_test_cases.rb