spec/support/shared_group.rb in hungryform-0.0.1 vs spec/support/shared_group.rb in hungryform-0.0.2
- old
+ new
@@ -4,10 +4,12 @@
let(:page) { described_class.new(:parent_name, nil, resolver, {}) {} }
let(:group_options) { {} }
let(:group) { described_class.new(:name, page, resolver, group_options) {} }
- it_behaves_like "an element"
+ it_behaves_like "an element" do
+ let(:element_options) { group_options }
+ end
describe "#group" do
it "creates a nested group" do
group.group(:nested, {}) {}
expect(group.elements.first.class).to eq HungryForm::Group
\ No newline at end of file