Sha256: 18c8419e4492da0654a4c7208ea81d66e610bd11a0dc6a52617e054375fcc0d4
Contents?: true
Size: 765 Bytes
Versions: 1
Compression:
Stored size: 765 Bytes
Contents
require "spec_helper" describe HungryForm::Elements::RadioGroup do let(:resolver_options) { {} } let(:resolver) { HungryForm::Resolver.new(resolver_options) } let(:group) { HungryForm::Elements::Group.new(:group, nil, resolver, {}) {} } let(:element_options) do { :options => { "1" => "First", "2" => "Second", "3" => "Third" } } end subject { HungryForm::Elements::RadioGroup.new(:element_name, group, resolver, element_options) {} } it_behaves_like "an element with options" do let(:options_element_options) do { :options => { "1" => "First", "element_value" => "Second" # element_value is checked in shared_active_element } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hungryform-0.0.4 | spec/elements/radio_group_spec.rb |