Sha256: c758a69f36ec49f1e344e3e4ad51b9b73b899988040246c1a95598cee0aadbf0
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
require "spec_helper" describe HungryForm::Elements::Page do let(:resolver) { HungryForm::Resolver.new() } let(:options) { {} } let(:page) { HungryForm::Elements::Page.new(:pagename, nil, resolver, options) {} } it_behaves_like "a group" describe ".new" do it "should have one element" do page = HungryForm::Elements::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::Elements::Group end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hungryform-0.0.4 | spec/elements/page_spec.rb |