Sha256: b9e8148ab49339bc0a0baee626ca71af9da2e0855a3ccc5a62b8bbd791aa92c6

Contents?: true

Size: 1.3 KB

Versions: 8

Compression:

Stored size: 1.3 KB

Contents

shared_examples 'Unidom::Action::Concerns::AsSearcherParty' do |model_attributes|

  context do

    searching_1_attributes = {
      searcher_visitor_id:   SecureRandom.uuid,
      searcher_visitor_type: 'Unidom::Action::SearcherVisitor::Mock',
      reason_id:             SecureRandom.uuid,
      resource_name:         'articles',
      platform_name:         'customer',
      platform_version:      1,
      criteria:              { keyword: 'Title' },
      found_count:           18,
      shown_count:           10,
      per_page:              10,
      total_pages:           2,
      current_page:          1
    }

    searching_2_attributes = {
      searcher_visitor_id:   SecureRandom.uuid,
      searcher_visitor_type: 'Unidom::Action::SearcherVisitor::Mock',
      reason_id:             SecureRandom.uuid,
      resource_name:         'comments',
      platform_name:         'administration',
      platform_version:      2,
      criteria:              { keyword: 'Comment' },
      found_count:           28,
      shown_count:           8,
      per_page:              10,
      total_pages:           3,
      current_page:          3
    }

    it_behaves_like 'has_many', model_attributes, :searched_searchings, Unidom::Action::Searching, [ searching_1_attributes, searching_2_attributes ]

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
unidom-action-2.0 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.18 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.17 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.16 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.15 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.13 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.14 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb
unidom-action-1.17.12 lib/rspec/models/unidom/action/concerns/as_searcher_party_shared_examples.rb