Sha256: 4910a1bdf2e97445504e3e6b00c58a27d68b5cf3dcbb4ce073b6c9f4b8ace0bc

Contents?: true

Size: 319 Bytes

Versions: 12

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper'

describe RecordCollection::Name do
  let(:employee){ Employee.create section: 'SE1' }
  subject{ Employee::Collection.new([employee]).model_name }

  its(:singular_route_key){ should eq 'employee' }
  its(:route_key){ should eq 'employees' }
  its(:human){ should eq 'Employees collection' }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
record_collection-0.10.4 spec/record_selection/name_spec.rb
record_collection-0.10.3 spec/record_selection/name_spec.rb
record_collection-0.10.2 spec/record_selection/name_spec.rb
record_collection-0.10.1 spec/record_selection/name_spec.rb
record_collection-0.10.0 spec/record_selection/name_spec.rb
record_collection-0.9.2 spec/record_selection/name_spec.rb
record_collection-0.9.1 spec/record_selection/name_spec.rb
record_collection-0.9.0 spec/record_selection/name_spec.rb
record_collection-0.8.3 spec/record_selection/name_spec.rb
record_collection-0.8.2 spec/record_selection/name_spec.rb
record_collection-0.8.1 spec/record_selection/name_spec.rb
record_collection-0.7.5 spec/record_selection/name_spec.rb