Sha256: 6d7434037cd4d01edb5def9b8b3b2f13b4412e7a809c7e2088df597f5854bb68

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

require_relative '../spec_helper'
require_relative '../../lib/lovely_rufus/settings'

module LovelyRufus
  describe Settings do
    describe '#width' do
      it 'defaults to 72' do
        Settings.new([]).width.must_equal 72
      end

      it 'can be set via --width' do
        Settings.new(%w(--width=42)).width.must_equal 42
      end

      it 'can be set via -w' do
        Settings.new(%w(-w 42)).width.must_equal 42
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lovely_rufus-0.2.1 spec/lovely_rufus/settings_spec.rb
lovely_rufus-0.2.0 spec/lovely_rufus/settings_spec.rb