diff --git a/features/project.feature b/features/project.feature new file mode 100644 index 0000000..342058f --- /dev/null +++ b/features/project.feature @@ -0,0 +1,15 @@ +Feature: Project + In Order to have a good interaction with the website + As a regular user + I should see and manage projects + + Scenario: Listing projects + Given I am at the homepage + When I click the All Projects link + Then I should see Listing Projects + And I should see Name + And I should see Description + + Scenario: Should not create project without login + Given I am at the All Projects page + Then I should not see New Project \ No newline at end of file diff --git a/features/step_definitions/project_steps.rb b/features/step_definitions/project_steps.rb new file mode 100644 index 0000000..0f62740 --- /dev/null +++ b/features/step_definitions/project_steps.rb @@ -0,0 +1,7 @@ +Given(/^I am at the All Projects page$/) do + visit projects_path +end + +Then(/^I should not see (.+)$/) do |text| + page.should_not have_content(text) +end \ No newline at end of file -- libgit2 0.21.2