Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
7786fe7c
Commit
7786fe7c
authored
Apr 10, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing specs & spinach since Wiki model does not exists any more
parent
001f3bc5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
26 deletions
+2
-26
features/dashboard/search.feature
features/dashboard/search.feature
+0
-5
features/steps/dashboard/dashboard_search.rb
features/steps/dashboard/dashboard_search.rb
+0
-11
spec/factories.rb
spec/factories.rb
+0
-6
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+0
-4
spec/services/project_transfer_service_spec.rb
spec/services/project_transfer_service_spec.rb
+2
-0
No files found.
features/dashboard/search.feature
View file @
7786fe7c
...
...
@@ -2,13 +2,8 @@ Feature: Dashboard Search
Background
:
Given
I sign in as a user
And
I own project
"Shop"
And
Project
"Shop"
has wiki page
"Contibuting guide"
And
I visit dashboard search page
Scenario
:
I
should see project I am looking for
Given
I search for
"Sho"
Then
I should see
"Shop"
project link
Scenario
:
I
should see wiki page I am looking for
Given
I search for
"Contibuting"
Then
I should see
"Contibuting guide"
wiki link
\ No newline at end of file
features/steps/dashboard/dashboard_search.rb
View file @
7786fe7c
...
...
@@ -16,15 +16,4 @@ class DashboardSearch < Spinach::FeatureSteps
fill_in
"dashboard_search"
,
with:
"Contibuting"
click_button
"Search"
end
And
'Project "Shop" has wiki page "Contibuting guide"'
do
@wiki_page
=
create
:wiki
,
project:
@project
,
title:
"Contibuting guide"
,
slug:
"contributing"
end
Then
'I should see "Contibuting guide" wiki link'
do
page
.
should
have_link
"Contibuting guide"
end
end
spec/factories.rb
View file @
7786fe7c
...
...
@@ -198,12 +198,6 @@ FactoryGirl.define do
url
end
factory
:wiki
do
title
content
user
end
factory
:snippet
do
project
author
...
...
spec/services/notification_service_spec.rb
View file @
7786fe7c
require
'spec_helper'
describe
NotificationService
do
# Disable observers to prevent factory trigger notification service
before
(
:all
)
{
ActiveRecord
::
Base
.
observers
.
disable
:all
}
after
(
:all
)
{
ActiveRecord
::
Base
.
observers
.
enable
:all
}
let
(
:notification
)
{
NotificationService
.
new
}
describe
'Keys'
do
...
...
spec/services/project_transfer_service_spec.rb
View file @
7786fe7c
require
'spec_helper'
describe
ProjectTransferService
do
before
(
:each
)
{
enable_observers
}
context
'namespace -> namespace'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment