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.3.12 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.11 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.10 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.9 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.7 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.6 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.5 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.4 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.3 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.2 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.1 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.3.0 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.8 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.7 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.6 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.5 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.4 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.3 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.2 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb
ruby_smb-3.2.1 spec/lib/ruby_smb/server/share/provider/pipe_spec.rb