Sha256: 5a3eab02148bd3467bf0b0919c2190b3b4964e4db83c7b38eb24a418f785c90d

Contents?: true

Size: 363 Bytes

Versions: 31

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true
module ActiveMocker
  class MockRelation
    # @param [ActiveMocker::Base] mock, a generated mock class
    # @param [Array<ActiveMocker::Base>] collection, an array of mock instances
    # @return [ScopeRelation] for the given mock
    def self.new(mock, collection)
      mock.send(:__new_relation__, collection)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
active_mocker-2.6.2 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.6.1.beta2 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.6.1.beta lib/active_mocker/mock/mock_relation.rb
active_mocker-2.6.0 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.5.4 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.5.3 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.5.2 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.5.1 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.5.1.pre lib/active_mocker/mock/mock_relation.rb
active_mocker-2.5.0 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.4 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.3 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.2 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.1 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.0 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.0.pre5 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.3.4 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.0.pre4 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.0.pre3 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.4.0.pre2 lib/active_mocker/mock/mock_relation.rb