end of day commit

This commit is contained in:
2015-02-25 18:56:45 +01:00
parent c2435695bf
commit 3da5d8eb41
29 changed files with 132 additions and 27 deletions
@@ -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
+2
View File
@@ -1,4 +1,6 @@
FactoryGirl.define do
factory :page do
locale 'en'
layout 'theme1'
end
end
+6
View File
@@ -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