Added a failing cucumber scenario for bug #294. Complements patch #315.

This commit is contained in:
Mario Visic 2012-03-05 11:11:45 +08:00
parent 98a6740a7d
commit fa42eb4f74
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,10 @@
Feature: Installation
As A User
In order to get setup with locomotive quickly
I want to be able to create an admin account and my first site
Scenario: Viewing the installation deatils after creating a site (Bug)
Given I have a site set up
When I am on the installation page
Then I should not be able to see any admin user details

View File

@ -0,0 +1,3 @@
Then /^I should not be able to see any admin user details$/ do
page.should_not have_content @admin.email
end

View File

@ -40,6 +40,8 @@ module NavigationHelpers
when /the "(.*)" model edition page/ when /the "(.*)" model edition page/
content_type = Site.first.content_types.where(:name => $1).first content_type = Site.first.content_types.where(:name => $1).first
edit_admin_content_type_path(content_type) edit_admin_content_type_path(content_type)
when /the installation page/
admin_installation_path
# Add more mappings here. # Add more mappings here.
# Here is an example that pulls values out of the Regexp: # Here is an example that pulls values out of the Regexp: