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

Version Path
shelr-0.11.8 spec/shelr/recorder_spec.rb
shelr-0.11.7 spec/shelr/recorder_spec.rb
shelr-0.11.6 spec/shelr/recorder_spec.rb
shelr-0.11.5 spec/shelr/recorder_spec.rb
shelr-0.11.4 spec/shelr/recorder_spec.rb
shelr-0.11.3 spec/shelr/recorder_spec.rb