Sha256: 0117391066301671ff44b5da03123093b65354409ede1004a7e9cdf6beac9fcf

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

require_relative '../../test_helper'

module Troo
  describe Preference do
    let(:described_class) { Preference }
    let(:parameters)      {
      {
        label: 'my_preference',
        value: 'Some value...'
      }
    }

    describe '#view' do
      subject { described_class.view(parameters) }

      it 'presents the preference' do
        subject.must_equal('           my_preference: Some value...')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
troo-0.0.12 test/lib/troo/preference_test.rb
troo-0.0.11 test/lib/troo/preference_test.rb