Sha256: 467d68cf7a642ef2bf666a199de11f33ec8a82d16e3622a3f3c1bd92d279e252

Contents?: true

Size: 239 Bytes

Versions: 23

Compression:

Stored size: 239 Bytes

Contents

shared_examples_for "a model that uses its URN as its parameter" do
  let(:model) { FactoryGirl.build(instance_factory_name, urn: "test-urn") }

  it "returns the URN as the param" do
    expect(model.to_param).to eq("test-urn")
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
g5_updatable-0.20.3.pre.1 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.10.3 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.10.2 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.10.1 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.10.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.9.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.8.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.7.2 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.7.1 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.7.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.6.1 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.6.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.5.1 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.5.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.4.3 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.4.2 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.4.1 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.4.0 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.3.5 spec/support/shared_example_for_urn_as_parameter.rb
g5_updatable-0.3.4 spec/support/shared_example_for_urn_as_parameter.rb