Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
21d21305
Commit
21d21305
authored
14 years ago
by
Sarah Mei
Browse files
Options
Downloads
Patches
Plain Diff
Found the magic incantation for devise controller specs.
parent
698dafb3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/controllers/registrations_controller_spec.rb
+22
-0
22 additions, 0 deletions
spec/controllers/registrations_controller_spec.rb
with
22 additions
and
0 deletions
spec/controllers/registrations_controller_spec.rb
0 → 100644
+
22
−
0
View file @
21d21305
# Copyright (c) 2010, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require
File
.
join
(
File
.
dirname
(
__FILE__
),
".."
,
"spec_helper"
)
describe
RegistrationsController
do
include
Devise
::
TestHelpers
render_views
before
do
request
.
env
[
"devise.mapping"
]
=
Devise
.
mappings
[
:user
]
end
describe
"#new"
do
it
"succeeds"
do
get
:new
response
.
should
be_success
end
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment