mysociety/alaveteli

View on GitHub
gems/alaveteli_features/spec/mocks/collection_object.rb

Summary

Maintainability
A
0 mins
Test Coverage
class MockCollectionObject # :nodoc:
  attr_reader :key

  def initialize(key:)
    @key = key
  end

  module CollectionMethods # :nodoc:
    attr_reader :actor

    def with_actor(actor)
      @actor = actor
      self
    end
  end
end