Refactor explore area tests. Replaced old links

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-07-23 12:18:51 +03:00
parent 367445fdcd
commit f0bfeb6e33
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
9 changed files with 23 additions and 23 deletions

View file

@ -46,5 +46,5 @@
%br
Public projects are an easy way to allow everyone to have read-only access.
.link_holder
= link_to public_projects_path, class: "btn btn-new" do
= link_to explore_projects_path, class: "btn btn-new" do
Browse public projects »

View file

@ -1,6 +1,6 @@
.clearfix
.pull-left
= form_tag public_projects_path, method: :get, class: 'form-inline form-tiny' do |f|
= form_tag explore_projects_path, method: :get, class: 'form-inline form-tiny' do |f|
.form-group
= search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input input-mn-300", id: "projects_search"
.form-group
@ -17,15 +17,15 @@
%b.caret
%ul.dropdown-menu
%li
= link_to public_projects_path(sort: nil) do
= link_to explore_projects_path(sort: nil) do
Name
= link_to public_projects_path(sort: 'newest') do
= link_to explore_projects_path(sort: 'newest') do
Newest
= link_to public_projects_path(sort: 'oldest') do
= link_to explore_projects_path(sort: 'oldest') do
Oldest
= link_to public_projects_path(sort: 'recently_updated') do
= link_to explore_projects_path(sort: 'recently_updated') do
Recently updated
= link_to public_projects_path(sort: 'last_updated') do
= link_to explore_projects_path(sort: 'last_updated') do
Last updated
%hr

View file

@ -8,4 +8,4 @@
= render @trending_projects
.center
= link_to 'Show all projects', public_projects_path, class: 'btn btn-primary'
= link_to 'Show all projects', explore_projects_path, class: 'btn btn-primary'

View file

@ -3,7 +3,7 @@
.container
%div.app_logo
%span.separator
= link_to public_root_path, class: "home" do
= link_to explore_root_path, class: "home" do
%h1 GITLAB
%span.separator
%h1.title= title

View file

@ -1,5 +1,5 @@
@public
Feature: Public Projects Feature
Feature: Explore Projects Feature
Background:
Given public project "Community"
And internal project "Internal"

View file

@ -1,5 +1,5 @@
@public
Feature: Public Projects Feature
Feature: Explore Groups Feature
Background:
Given group "TestGroup" has private project "Enterprise"

View file

@ -1,4 +1,4 @@
class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
class Spinach::Features::ExploreGroupsFeature < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedGroup

View file

@ -1,4 +1,4 @@
class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
class Spinach::Features::ExploreProjectsFeature < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject

View file

@ -324,7 +324,7 @@ module SharedPaths
# ----------------------------------------
step 'I visit the public projects area' do
visit public_root_path
visit explore_projects_path
end
step 'I visit public page for "Community" project' do
@ -336,7 +336,7 @@ module SharedPaths
# ----------------------------------------
step 'I visit the public groups area' do
visit public_groups_path
visit explore_groups_path
end
# ----------------------------------------