Sha256: 03bf779688ecf5165f6a85d1e6cf52506af1bcbee3f2e85af045cf3563462025
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
require "spec_helper" describe HungryForm::Page do let(:resolver) { HungryForm::Resolver.new() } let(:options) { {} } let(:page) { HungryForm::Page.new(:pagename, nil, resolver, options) {} } it_behaves_like "a group" describe ".new" do it "should have one element" do page = HungryForm::Page.new(:pagename, nil, resolver, options) do html :html_name, value: "<p>Test html block</p>" end expect(page.elements.size).to eq 1 end end describe "#group" do it "should contain a group" do page.group(:group_name, {}) {} expect(page.elements.first.class).to eq HungryForm::Group end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hungryform-0.0.2 | spec/elements/page_spec.rb |
hungryform-0.0.1 | spec/elements/page_spec.rb |