Sha256: 9512c1c1488a35d27f25e3aa0488fe027780f150f14ce18f75107554db4ec610

Contents?: true

Size: 204 Bytes

Versions: 6

Compression:

Stored size: 204 Bytes

Contents

module Support
  module Stubs
    def build_stub(params={})
      OpenStruct.new.tap do |stub|
        params.each do |key, val|
          stub.send "#{key}=", val
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
outpost-0.2.5 test/support/stubs.rb
outpost-0.2.4 test/support/stubs.rb
outpost-0.2.3 test/support/stubs.rb
outpost-0.2.2 test/support/stubs.rb
outpost-0.2.1 test/support/stubs.rb
outpost-0.2.0 test/support/stubs.rb