Sha256: 8f40ddb3b23c3bebad2abc756416c0d1d45b09a9167bfde9e6b4d272cf271d57

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

shared_examples_for "a model that uses its URN as its parameter" do
  let(:model) { FactoryBot.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

1 entries across 1 versions & 1 rubygems

Version Path
g5_updatable-1.0.2.pre.1 spec/support/shared_example_for_urn_as_parameter.rb