Sha256: d2a85f2dabb6864395c0bd44dc2bed385f70bd11714e356609ff9b0a388a11cd
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "mocktail" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. class Negroni def self.ingredients [:gin, :campari, :sweet_vermouth] end def shake!(shaker) shaker.mix(self.class.ingredients) end def sip(amount) raise "unimplemented" end end include Mocktail::DSL class UserRepository def find(id); end def transaction(&blk); end end class Auditor def record!(message, user:, action: nil); end end # (If you use this, don't forget to add pry to your Gemfile!) require "pry" Pry.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocktail-0.0.1 | bin/console |