Sha256: 75cb524ea54cf7fbc7d4347b38160a06e66074c0c165391c4404c51c320708bc

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

require_relative '../test_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

1 entries across 1 versions & 1 rubygems

Version Path
lovely_rufus-1.0.1 test/lovely_rufus/settings_test.rb