Sha256: 6a09e90fafef2c45164cf7d6524c94a9ae235c0e4d49e24c743271139be443e2

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'

describe Shelr::Recorder do

  before(:each) do
    STDIN.stub(:gets).and_return('my shellcast')
    Shelr.backend = 'script'
  end

  describe "#record!" do
    before(:each) do
      subject.stub(:system).with(anything).and_return(true)
    end

    it "should start script session" do
      subject.should_receive("system").with(Regexp.compile("script"))
      subject.record!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shelr-0.11.9 spec/shelr/recorder_spec.rb