Sha256: 9ad3891baf98ae94b39ff14eee8d056af845d6733d12d2caa90cfebc233a0bc6

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

describe Vagrant::Boxen::Modules::Redis do
  let(:manifest) { subject.build_manifest }

  subject { described_class.new(:memory => '1gb', :port => '1234') }

  it 'includes redis class on manifest' do
    manifest.should =~ /^class { 'redis': /
  end

  it 'maps memory option to redis_max_memory' do
    manifest.should =~ /redis_max_memory\s+=>\s+'1gb',/
  end

  it 'maps port option to redis_port' do
    manifest.should =~ /redis_port\s+=>\s+'1234',/
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-boxen-0.0.4 spec/unit/modules/redis_spec.rb
vagrant-boxen-0.0.3 spec/unit/modules/redis_spec.rb