Sha256: bfb14b76da4fa83a68b643d4e440eefc677505010185425092cfcc333cb7d16a

Contents?: true

Size: 486 Bytes

Versions: 15

Compression:

Stored size: 486 Bytes

Contents

require_relative "records_demonstration"

module Mocktail
  class RegistersStubbing
    def initialize
      @records_demonstration = RecordsDemonstration.new
    end

    def register(demonstration, demo_config)
      Stubbing.new(
        demonstration: demonstration,
        demo_config: demo_config,
        recording: @records_demonstration.record(demonstration, demo_config)
      ).tap do |stubbing|
        Mocktail.cabinet.store_stubbing(stubbing)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mocktail-1.2.3 lib/mocktail/registers_stubbing.rb
mocktail-1.2.2 lib/mocktail/registers_stubbing.rb
mocktail-1.2.1 lib/mocktail/registers_stubbing.rb
mocktail-1.2.0 lib/mocktail/registers_stubbing.rb
mocktail-1.1.3 lib/mocktail/registers_stubbing.rb
mocktail-1.1.2 lib/mocktail/registers_stubbing.rb
mocktail-1.1.1 lib/mocktail/registers_stubbing.rb
mocktail-1.1.0 lib/mocktail/registers_stubbing.rb
mocktail-1.0.0 lib/mocktail/registers_stubbing.rb
mocktail-0.0.6 lib/mocktail/registers_stubbing.rb
mocktail-0.0.5 lib/mocktail/registers_stubbing.rb
mocktail-0.0.4 lib/mocktail/registers_stubbing.rb
mocktail-0.0.3 lib/mocktail/registers_stubbing.rb
mocktail-0.0.2 lib/mocktail/registers_stubbing.rb
mocktail-0.0.1 lib/mocktail/registers_stubbing.rb