-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
require 'spec_helper' | ||
include SubmittingAnEntrySpecHelper | ||
|
||
describe 'Rendering a form properly' do | ||
|
||
subject { page } | ||
let!(:form) { FactoryGirl.create(:form) } | ||
let!(:entry) { e = Entry.new(form: form); e.save(validate: false); e } | ||
|
||
context 'with a text field' do | ||
|
||
before do | ||
form.response_fields.create(label: "Text", type: "Formbuilder::ResponseFieldText", sort_order: 0) | ||
visit form_path(form.id, entry.id) | ||
end | ||
|
||
it 'should render the field and its label' do | ||
# label | ||
# required? | ||
# description | ||
end | ||
|
||
it 'should render errors' | ||
|
||
it 'should render length validations' | ||
|
||
it 'should render min/max validations' | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
describe Formbuilder::FormRenderer do | ||
|
||
pending | ||
# Intentionally blank, this gets tested w/ a feature spec | ||
|
||
end |