end of day commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
Feature: Submitting contact form
|
||||
Scenario: Website visitor submits contact form
|
||||
Given there are standard website pages
|
||||
When I visit '/contact'
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
step "there are standard website pages" do
|
||||
create_site_pages
|
||||
end
|
||||
@@ -1,4 +1,6 @@
|
||||
FactoryGirl.define do
|
||||
factory :page do
|
||||
locale 'en'
|
||||
layout 'theme1'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -28,6 +28,12 @@ module Features
|
||||
submit_form
|
||||
end
|
||||
|
||||
def create_site_pages
|
||||
@home = create :page, name: 'home', layout: 'theme1-home', title: 'Home'
|
||||
@about = create :page, name: 'about', title: 'About mozo'
|
||||
@contact = create :page, name: 'contact', title: 'Contact'
|
||||
end
|
||||
|
||||
def submit_form
|
||||
find("[type=submit]").click
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user