Sha256: afb8f21ff510f337fd7957de49426ac8384c6762da08753d7374fa8b1a191c6e
Contents?: true
Size: 509 Bytes
Versions: 127
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' describe ChoicesHelper do helper ChoicesHelper context 'exercise with 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
127 entries across 127 versions & 1 rubygems