Sha256: 7ee41a2821241ba9f100f33c1d35805b5db76f336ca151b6c954f7b7e6f74179
Contents?: true
Size: 425 Bytes
Versions: 6
Compression:
Stored size: 425 Bytes
Contents
require 'spec_helper' describe Shelr::Recorder do before(:each) do STDIN.stubs(:gets).returns('my shellcast') Shelr.backend = 'script' end describe "#record!" do before(:each) do subject.stubs(:system).with(anything).returns(true) end it "should start script session" do subject.expects("system").with(regexp_matches Regexp.compile("script")) subject.record! end end end
Version data entries
6 entries across 6 versions & 1 rubygems