Sha256: 405045c96d6e8a1ca1bc5d55964c503705f6a12c4f0f2ad7fd2e26079db7fa8b
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
require 'assert' require 'cap-util/fake_cap' class CapUtil::FakeCap class BaseTests < Assert::Context desc "the fake cap helper" setup do @fc = CapUtil::FakeCap.new end subject { @fc } should have_imeths :method_missing, :respond_to? should have_imeths :run, :sudo, :fetch, :role should have_readers :roles, :cmds_run should "store off cmds that have been run" do assert_empty subject.cmds_run subject.run('a_cmd', 1) assert_equal 'a_cmd', subject.cmds_run.last subject.sudo('a_cmd', 1) assert_equal 'sudo a_cmd', subject.cmds_run.last end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cap-util-1.4.0 | test/unit/fake_cap_tests.rb |
cap-util-1.3.0 | test/unit/fake_cap_tests.rb |
cap-util-1.2.0 | test/unit/fake_cap_tests.rb |