Sha256: 9cf99e8ecc2f40a8fd99a819c52b92d1c2a914774a9292f5bbadf03af560abc5
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
require 'assert' require 'cap-util/fake_cap' module CapUtil class FakeCapTests < Assert::Context desc "the fake cap helper" setup do @fc = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cap-util-1.1.0 | test/fake_cap_tests.rb |