Sha256: 3cf6db35172fc88fe951f5bc0e396835bbb37602ae5bb55ca8eed0f37572653f

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

shared_examples 'Unidom::Visitor::Concerns::AsCredential' do |model_attributes|

  context do

    authenticating_attributes = {
      visitor_id:   SecureRandom.uuid,
      visitor_type: 'Unidom::Visitor::Visitor::Mock',
      flag_code:    Unidom::Visitor::Flag::REQUIRED.code
    }

    it_behaves_like 'has_one', model_attributes, :authenticating, Unidom::Visitor::Authenticating, authenticating_attributes

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unidom-visitor-1.13.7 lib/rspec/models/unidom/visitor/concerns/as_credential_shared_examples.rb
unidom-visitor-1.13.6 lib/rspec/models/unidom/visitor/concerns/as_credential_shared_examples.rb