Sha256: 101bc4c40bb81fc6c3b40928551f3c761a6aa23390dd04b1d4eb6742a2b4f662
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
require 'spec_helper' require 'support/inflector' RSpec.describe Support::Inflector do describe '.titelize' do it 'returns pretty strings' do { " \t pro ject \n" => 'Pro Ject', '42_my project' => 'My Project', 'project42' => 'Project42', 'project 42' => 'Project 42', 'project___ 42nd' => 'Project 42nd', 'PRO ject' => 'PRO Ject' }.each_pair do |input, output| expect(described_class.titelize(input)).to eq output end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rail-0.1.1 | spec/lib/support/inflector_spec.rb |
rail-0.1.0 | spec/lib/support/inflector_spec.rb |
rail-0.0.8 | spec/lib/support/inflector_spec.rb |