Sha256: c3b3ef798f5c3a414f7fb350cf1a13a7a4e3baff3eff7bafea1b4247864d85bd

Contents?: true

Size: 944 Bytes

Versions: 35

Compression:

Stored size: 944 Bytes

Contents

RSpec.describe RubySMB::Server::Share::Provider::Pipe do
  let(:name) { 'share' }
  subject(:share_provider) { described_class.new(name) }

  it { is_expected.to respond_to :name }
  it { is_expected.to respond_to :type }

  describe '#TYPE' do
    it 'is TYPE_PIPE' do
      expect(described_class::TYPE).to eq RubySMB::Server::Share::TYPE_PIPE
    end
  end

  describe '#initialize' do
    it 'sets the name' do
      expect(share_provider.name).to eq name
    end

    it 'sets the type correctly' do
      expect(share_provider.type).to eq RubySMB::Server::Share::TYPE_PIPE
    end
  end
end

RSpec.describe RubySMB::Server::Share::Provider::Pipe::Processor do
  let(:session) { RubySMB::Server::Session.new(rand(0xffffffff)) }
  let(:share_provider) { RubySMB::Server::Share::Provider::Pipe.new('share') }
  subject(:share_processor) { described_class.new(share_provider, nil, session) }

  it { is_expected.to respond_to :provider }
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ruby_smb-3.2.0 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.7 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.6 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.5 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.4 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.3 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.2 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.1 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.1.0 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.0.6 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.0.5 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.0.4 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.0.3 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.0.2 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.0.1 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb