Sha256: c968dc475a2886526fc87cfd48e3af120d4ee215f233a84d89df93cfff6e1b40

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

require_relative '../../spec_helper'

describe DatabaseList do
  let(:backend){ double() }
  let(:command){ DatabaseList.new(backend) }

  describe 'result' do
    it 'should retrieve all database identifiers' do
      backend.stub(:info){ {db0: '', db1: '', example: ''} }

      command.result.should include('0')
      command.result.should include('1')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_monitor-0.3.3 lib/engine/spec/lib/commands/database_list_spec.rb
redis_monitor-0.3.2 lib/engine/spec/lib/commands/database_list_spec.rb
redis_monitor-0.3 lib/engine/spec/lib/commands/database_list_spec.rb
redis_monitor-0.2.1 lib/engine/spec/lib/commands/database_list_spec.rb