Created
January 7, 2014 17:12
-
-
Save mauriciomdea/8302685 to your computer and use it in GitHub Desktop.
Rspec results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rspec | |
I, [2014-01-07T15:09:54.404914 #86163] INFO -- : Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set. | |
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. | |
User | |
should respond to #password_confirmation | |
should respond to #company_name | |
should respond to #name | |
should respond to #password_reset_token | |
should respond to #email | |
should respond to #auth_token | |
should respond to #title | |
should respond to #phone | |
should respond to #password | |
should respond to #password_reset_sent_at | |
when validating | |
is invalid without a title | |
is invalid with a wrong email | |
is invalid without a name | |
is invalid without a phone too short | |
is invalid without an email | |
is invalid without a phone | |
is invalid without a password | |
is invalid with a password too short | |
is invalid without a company_name | |
DashboardController | |
GET 'show' | |
returns http success (FAILED - 1) | |
UserRegistration | |
should respond to #name | |
should respond to #activation_token | |
should respond to #email | |
should respond to #activation_sent_at | |
when validating | |
is invalid with a wrong email | |
is invalid without a name | |
is invalid when terms have not been accepted | |
is invalid without an email | |
is invalid when email already belongs to an user | |
UsersController | |
POST 'create' | |
with valid parameters and registration | |
redirects to dashboard (FAILED - 2) | |
logs the user in | |
creates a user (FAILED - 3) | |
with invalid registration | |
re-renders the form | |
with invalid parameters | |
re-renders the form | |
PUT 'update' | |
example at ./spec/controllers/users_controller_spec.rb:92 (PENDING: No reason given) | |
GET 'edit' | |
with authenticated user | |
redirects to new user form | |
assigns an user object as @user | |
with non-authenticated user | |
redirects to root | |
does not assigns an user object as @user | |
SessionsController | |
unauthenticated user | |
GET 'new' | |
renders the login page | |
DELETE 'destroy' | |
redirects to home page (FAILED - 4) | |
POST 'create' | |
with valid parameters | |
redirects to app root (FAILED - 5) | |
logs the user in (FAILED - 6) | |
with invalid parameters | |
re-renders the form | |
authenticated active user | |
GET 'new' | |
redirects to home page (FAILED - 7) | |
DELETE 'destroy' | |
redirects to home page (FAILED - 8) | |
logs the user out (FAILED - 9) | |
POST 'create' | |
redirects to app root (FAILED - 10) | |
validate FactoryGirl factories | |
with factory for :user_registration | |
is valid | |
with factory for :user | |
is valid | |
PagesController | |
GET 'show' | |
redirects to home with no permalink | |
returns a 404 when permalink doesn't correspond to a template | |
redirects to home when visiting /pages/home | |
UserRegistrationsController | |
GET 'new' | |
renders the new user registration form | |
assigns a new user registration object as @user_registration | |
GET 'edit' | |
with valid activation token | |
redirects to new user form | |
assigns a new user object as @user | |
with invalid activation token | |
redirects to root | |
displays error message | |
POST 'create' | |
with valid parameters | |
redirects to root | |
sends the activation email | |
displays flash notice | |
with invalid parameters | |
re-renders the form | |
Pending: | |
UsersController PUT 'update' | |
# No reason given | |
# ./spec/controllers/users_controller_spec.rb:92 | |
Failures: | |
1) DashboardController GET 'show' returns http success | |
Failure/Error: expect(response).to be_success | |
expected success? to return true, got false | |
# ./spec/controllers/dashboard_controller_spec.rb:8:in `block (3 levels) in <top (required)>' | |
2) UsersController POST 'create' with valid parameters and registration redirects to dashboard | |
Failure/Error: post :create, :user => valid_attributes.merge(:activation_token => user_registration.activation_token) | |
ActionView::MissingTemplate: | |
Missing template users/create, application/create with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f684a7470>" | |
# ./spec/controllers/users_controller_spec.rb:16:in `block (4 levels) in <top (required)>' | |
3) UsersController POST 'create' with valid parameters and registration creates a user | |
Failure/Error: post :create, :user => valid_attributes.merge(:activation_token => user_registration.activation_token) | |
ActionView::MissingTemplate: | |
Missing template users/create, application/create with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f680f2578>" | |
# ./spec/controllers/users_controller_spec.rb:22:in `block (5 levels) in <top (required)>' | |
# ./spec/controllers/users_controller_spec.rb:21:in `block (4 levels) in <top (required)>' | |
4) SessionsController unauthenticated user DELETE 'destroy' redirects to home page | |
Failure/Error: delete :destroy | |
ActionView::MissingTemplate: | |
Missing template sessions/destroy, application/destroy with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f6758fd48>" | |
# ./spec/controllers/sessions_controller_spec.rb:41:in `block (4 levels) in <top (required)>' | |
5) SessionsController unauthenticated user POST 'create' with valid parameters redirects to app root | |
Failure/Error: post :create, :signin => valid_attributes | |
ActionView::MissingTemplate: | |
Missing template sessions/create, application/create with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f674c1ce0>" | |
# ./spec/controllers/sessions_controller_spec.rb:20:in `block (5 levels) in <top (required)>' | |
6) SessionsController unauthenticated user POST 'create' with valid parameters logs the user in | |
Failure/Error: post :create, :signin => valid_attributes | |
ActionView::MissingTemplate: | |
Missing template sessions/create, application/create with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f6a0f2cb0>" | |
# ./spec/controllers/sessions_controller_spec.rb:25:in `block (5 levels) in <top (required)>' | |
7) SessionsController authenticated active user GET 'new' redirects to home page | |
Failure/Error: expect(response).to redirect_to(app_root_path) | |
Expected response to be a <redirect>, but was <200> | |
# ./spec/controllers/sessions_controller_spec.rb:55:in `block (4 levels) in <top (required)>' | |
8) SessionsController authenticated active user DELETE 'destroy' redirects to home page | |
Failure/Error: delete :destroy | |
ActionView::MissingTemplate: | |
Missing template sessions/destroy, application/destroy with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f675e6da0>" | |
# ./spec/controllers/sessions_controller_spec.rb:68:in `block (4 levels) in <top (required)>' | |
9) SessionsController authenticated active user DELETE 'destroy' logs the user out | |
Failure/Error: delete :destroy | |
ActionView::MissingTemplate: | |
Missing template sessions/destroy, application/destroy with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f63904ef0>" | |
# ./spec/controllers/sessions_controller_spec.rb:73:in `block (4 levels) in <top (required)>' | |
10) SessionsController authenticated active user POST 'create' redirects to app root | |
Failure/Error: post :create, :signin => valid_attributes | |
ActionView::MissingTemplate: | |
Missing template sessions/create, application/create with {:locale=>[:"pt-BR"], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. Searched in: | |
* "#<RSpec::Rails::ViewRendering::EmptyTemplatePathSetDecorator:0x007f7f67629dd0>" | |
# ./spec/controllers/sessions_controller_spec.rb:61:in `block (4 levels) in <top (required)>' | |
Finished in 1.85 seconds | |
63 examples, 10 failures, 1 pending | |
Failed examples: | |
rspec ./spec/controllers/dashboard_controller_spec.rb:6 # DashboardController GET 'show' returns http success | |
rspec ./spec/controllers/users_controller_spec.rb:15 # UsersController POST 'create' with valid parameters and registration redirects to dashboard | |
rspec ./spec/controllers/users_controller_spec.rb:20 # UsersController POST 'create' with valid parameters and registration creates a user | |
rspec ./spec/controllers/sessions_controller_spec.rb:40 # SessionsController unauthenticated user DELETE 'destroy' redirects to home page | |
rspec ./spec/controllers/sessions_controller_spec.rb:19 # SessionsController unauthenticated user POST 'create' with valid parameters redirects to app root | |
rspec ./spec/controllers/sessions_controller_spec.rb:24 # SessionsController unauthenticated user POST 'create' with valid parameters logs the user in | |
rspec ./spec/controllers/sessions_controller_spec.rb:53 # SessionsController authenticated active user GET 'new' redirects to home page | |
rspec ./spec/controllers/sessions_controller_spec.rb:67 # SessionsController authenticated active user DELETE 'destroy' redirects to home page | |
rspec ./spec/controllers/sessions_controller_spec.rb:72 # SessionsController authenticated active user DELETE 'destroy' logs the user out | |
rspec ./spec/controllers/sessions_controller_spec.rb:60 # SessionsController authenticated active user POST 'create' redirects to app root | |
Randomized with seed 58284 | |
Coverage report generated for RSpec to /Users/mma/src/recruto/coverage. 457 / 486 LOC (94.03%) covered. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment