Sha256: 624d71b7cb30fc41e211a1ce5433e12940d1e6fd35467d978041815af87b6de0

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 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 { subject.must_be_instance_of(String) }

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
troo-0.0.15 test/lib/troo/preference_test.rb
troo-0.0.14 test/lib/troo/preference_test.rb
troo-0.0.13 test/lib/troo/preference_test.rb