Sha256: 1757f1d0f0ba9b43e750b741de522a11fffa6ba26b3ca68f3b213d2a0f27da99

Contents?: true

Size: 678 Bytes

Versions: 6

Compression:

Stored size: 678 Bytes

Contents

require "spec_helper"

describe HungryForm::Elements::RadioGroup do
  let(:resolver_options) { {} }
  let(:resolver) { HungryForm::Resolver.new(resolver_options) }
  let(:group_options) { {} }
  let(:group) { HungryForm::Elements::Group.new(:group, nil, resolver, group_options) {} }

  let(:options) do 
    {
      :options => {
        "1" => "First", 
        "element_value" => "Second" # element_value is checked in shared_active_element
      }
    } 
  end

  subject { HungryForm::Elements::RadioGroup.new(:element_name, group, resolver, options) {} }

  it_behaves_like 'an element'
  it_behaves_like 'an active element'
  it_behaves_like 'an element with options'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hungryform-0.0.11 spec/elements/radio_group_spec.rb
hungryform-0.0.10 spec/elements/radio_group_spec.rb
hungryform-0.0.9 spec/elements/radio_group_spec.rb
hungryform-0.0.8 spec/elements/radio_group_spec.rb
hungryform-0.0.7 spec/elements/radio_group_spec.rb
hungryform-0.0.6 spec/elements/radio_group_spec.rb