Sha256: 52f5b70107fd5fd8b43267f4c5f9cddba6492e9781695b5986b1645bfaf7893d

Contents?: true

Size: 291 Bytes

Versions: 10

Compression:

Stored size: 291 Bytes

Contents

module Dumpdb

  class FakeCmdRunner

    def self.cmds
      @@cmds ||= []
      @@cmds
    end

    def self.reset
      @@cmds = []
    end

    def initialize(cmd)
      @cmd = cmd
    end

    def run!
      run
    end

    def run
      FakeCmdRunner.cmds << @cmd
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dumpdb-2.1.0 test/support/fake_cmd_runner.rb
dumpdb-2.0.0 test/support/fake_cmd_runner.rb
dumpdb-1.1.0 test/support/fake_cmd_runner.rb
dumpdb-1.0.4 test/support/fake_cmd_runner.rb
dumpdb-1.0.3 test/support/fake_cmd_runner.rb
dumpdb-1.0.2 test/support/fake_cmd_runner.rb
dumpdb-1.0.1 test/support/fake_cmd_runner.rb
dumpdb-1.0.0 test/support/fake_cmd_runner.rb
dumpdb-1.0.0.rc2 test/support/fake_cmd_runner.rb
dumpdb-1.0.0.rc1 test/support/fake_cmd_runner.rb