Sha256: 934107d337f22f41d711dbeaf4f1d6f01b011681dce7639cd9e0e75386fd16ae

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

Stored size: 762 Bytes

Contents

# encoding: utf-8
load File.expand_path( '../spec_helper.rb', File.dirname(__FILE__) )

describe Remote::Session::Send do

  context '#initialize' do

    it 'should require one parameter'do
      expect do
        Remote::Session::Send.new( 'foo', 'bar' )
      end.to raise_error( ArgumentError, 'wrong number of arguments (2 for 1)' )
    end

  end

  context 'attributes' do
    subject { Remote::Session::Send.new( 'foo' ) }

    specify( 'remote_path' ) { subject.remote_path.should == 'foo' }
    specify( 'chunk_size' )  { subject.chunk_size.should  == 1024 }
  end

  context 'instance_methods' do
    subject { Remote::Session::Send.new( '/remote/path' ) }

    context '#open?' do
      specify { subject.open?.should be_false }
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
remote-session-0.0.6 spec/unit/send_spec.rb
remote-session-0.0.5 spec/unit/send_spec.rb
remote-session-0.0.4 spec/unit/send_spec.rb