Commit 7ef50bc078fb246aa5b060dfd2e6522633d0ba5a

Authored by João M. M. Silva + Guilherme Rojas V. de Lima
Committed by João M. M. da Silva
1 parent 431aa276

Acceptance tests for all projects page

features/project.feature 0 → 100644
... ... @@ -0,0 +1,15 @@
  1 +Feature: Project
  2 + In Order to have a good interaction with the website
  3 + As a regular user
  4 + I should see and manage projects
  5 +
  6 + Scenario: Listing projects
  7 + Given I am at the homepage
  8 + When I click the All Projects link
  9 + Then I should see Listing Projects
  10 + And I should see Name
  11 + And I should see Description
  12 +
  13 + Scenario: Should not create project without login
  14 + Given I am at the All Projects page
  15 + Then I should not see New Project
0 16 \ No newline at end of file
... ...
features/step_definitions/project_steps.rb 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +Given(/^I am at the All Projects page$/) do
  2 + visit projects_path
  3 +end
  4 +
  5 +Then(/^I should not see (.+)$/) do |text|
  6 + page.should_not have_content(text)
  7 +end
0 8 \ No newline at end of file
... ...