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
iv
gitlab-ce
Commits
e3d2304d
Commit
e3d2304d
authored
Apr 27, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specs don't need to set default_url_options anymore
parent
2c905797
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
spec/features/users_spec.rb
spec/features/users_spec.rb
+0
-7
spec/support/reference_filter_spec_helper.rb
spec/support/reference_filter_spec_helper.rb
+0
-11
No files found.
spec/features/users_spec.rb
View file @
e3d2304d
require
'spec_helper'
feature
'Users'
do
around
do
|
ex
|
old_url_options
=
Rails
.
application
.
routes
.
default_url_options
Rails
.
application
.
routes
.
default_url_options
=
{
host:
'example.foo'
}
ex
.
run
Rails
.
application
.
routes
.
default_url_options
=
old_url_options
end
scenario
'GET /users/sign_in creates a new user account'
do
visit
new_user_session_path
fill_in
'user_name'
,
with:
'Name Surname'
...
...
spec/support/reference_filter_spec_helper.rb
View file @
e3d2304d
...
...
@@ -4,17 +4,6 @@
module
ReferenceFilterSpecHelper
extend
ActiveSupport
::
Concern
included
do
before
{
set_default_url_options
}
end
# Allow *_url helpers to work
def
set_default_url_options
Rails
.
application
.
routes
.
default_url_options
=
{
host:
'example.foo'
}
end
# Shortcut to Rails' auto-generated routes helpers, to avoid including the
# module
def
urls
...
...
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