Sha256: 55e7758948552be9c87267f27e2b7d28164d80dfecddc73edd862e0c76fe1a45

Contents?: true

Size: 456 Bytes

Versions: 10

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe Hyrax::Name do
  let(:name) { described_class.new(GenericWork) }

  describe "route_key" do
    subject { name.route_key }
    it { is_expected.to eq 'hyrax_generic_works' }
  end

  describe "singular_route_key" do
    subject { name.singular_route_key }
    it { is_expected.to eq 'hyrax_generic_work' }
  end

  describe "param_key" do
    subject { name.param_key }
    it { is_expected.to eq 'generic_work' }
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/lib/hyrax/name_spec.rb
hyrax-1.1.0 spec/lib/hyrax/name_spec.rb
hyrax-1.0.5 spec/lib/hyrax/name_spec.rb
hyrax-1.0.4 spec/lib/hyrax/name_spec.rb
hyrax-1.0.3 spec/lib/hyrax/name_spec.rb
hyrax-1.0.2 spec/lib/hyrax/name_spec.rb
hyrax-1.0.1 spec/lib/hyrax/name_spec.rb
hyrax-1.0.0.rc2 spec/lib/hyrax/name_spec.rb
hyrax-1.0.0.rc1 spec/lib/hyrax/name_spec.rb
test_hyrax-0.0.1.alpha spec/lib/hyrax/name_spec.rb