Sha256: dda531fb5b1e3e801e6b78016dfb9e597d775ba34bc89fb4add187e663f6bf8d

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
active_mocker-2.1.3 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.1.2 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.1.1 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.1.0 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.0.0 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.0.0.rc1 lib/active_mocker/mock/mock_relation.rb
active_mocker-2.0.0.pre1 lib/active_mocker/mock/mock_relation.rb