Sha256: a9cfcba5dcbdb1087f6ae8e5eff2c89d616a5e7c6d469961eccda9112f395249

Contents?: true

Size: 510 Bytes

Versions: 45

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

describe ChoicesHelper do
  helper ChoicesHelper

  context 'exercise width choices' do
    let(:checked_content) { struct id: '1', index: 0, value: 'foo', text: 'bar' }
    let(:unchecked_content) { struct id: '3', index: 2, value: 'baz', text: 'lorem' }
    let(:content) { '0:1' }
    it { expect(checked? checked_content, content).to be true }
    it { expect(checked? unchecked_content, content).to be false }
    it { expect(checked? unchecked_content, '').to be false }
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
mumuki-laboratory-6.1.3 spec/helpers/with_choices_spec.rb
mumuki-laboratory-6.1.2 spec/helpers/with_choices_spec.rb
mumuki-laboratory-6.1.1 spec/helpers/with_choices_spec.rb
mumuki-laboratory-6.1.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-6.0.1 spec/helpers/with_choices_spec.rb
mumuki-laboratory-6.0.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.13.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.12.1 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.12.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.11.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.10.4 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.10.3 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.10.2 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.10.1 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.10.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.9.1 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.9.0 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.8.3 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.8.1 spec/helpers/with_choices_spec.rb
mumuki-laboratory-5.8.0 spec/helpers/with_choices_spec.rb