Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjtipton/2594552 to your computer and use it in GitHub Desktop.
Save sjtipton/2594552 to your computer and use it in GitHub Desktop.
1) Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a non-signed in visitor should have response code of 404
Failure/Error: visit company_job_postings_path(@invalid_company_id)
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:48:in `block (5 levels) in <top (required)>'
2) Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a non-signed in visitor should show the 404 page
Failure/Error: visit company_job_postings_path(@invalid_company_id)
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:48:in `block (5 levels) in <top (required)>'
3) Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Company Admin should redirect the Company Admin to his Company's show page
Failure/Error: visit company_job_postings_path(@invalid_company_id)
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:71:in `block (5 levels) in <top (required)>'
4) Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Company Admin should alert the Company Admin with an error message
Failure/Error: visit company_job_postings_path(@invalid_company_id)
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:71:in `block (5 levels) in <top (required)>'
5) Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Hiring Manager should redirect the Hiring Manager to his Company's show page
Failure/Error: visit company_job_postings_path(@invalid_company_id)
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:96:in `block (5 levels) in <top (required)>'
6) Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Hiring Manager should alert the Hiring Manager with an error message
Failure/Error: visit company_job_postings_path(@invalid_company_id)
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:96:in `block (5 levels) in <top (required)>'
7) Hiring Manager View Job Posting Metrics A signed in Hiring Manager can view Job Posting Metrics when the Hiring Manager attempts to visit the Job Posting Metrics page the Job Posting Metrics page a Job Posting Metric should display the Job Posting title as a link to the Job Posting show page
Failure/Error: page.should have_link(@job_posting.title, href: users_job_posting_path(company_id: @job_posting.company_id,
expected link "Mechanical Systems Engineer" to return something
# ./spec/acceptance/non-selenium-dependent/users/hiring_manager/hiring_manager_view_metrics_index_spec.rb:113:in `block (7 levels) in <top (required)>'
# ./spec/acceptance/non-selenium-dependent/users/hiring_manager/hiring_manager_view_metrics_index_spec.rb:112:in `block (6 levels) in <top (required)>'
8) CompanyJobPostingsController As a public non-signed in visitor GET 'index' when valid should render 'search_form' partial
Failure/Error: response.should render_template(partial: "company_job_postings/_search_form")
expecting partial <"company_job_postings/_search_form"> but action rendered <["job_postings/_job_postings",
"_job_postings",
"layouts/_topbar.html",
"_topbar.html",
"layouts/_head",
"_head",
"layouts/_notices",
"_notices",
"layouts/_footer",
"_footer"]>
# ./spec/controllers/company_job_postings_controller_spec.rb:65:in `block (5 levels) in <top (required)>'
9) CompanyJobPostingsController As a public non-signed in visitor GET 'index' when invalid given a non-existent Company should not be successful
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:98:in `block (6 levels) in <top (required)>'
10) CompanyJobPostingsController As a public non-signed in visitor GET 'index' when invalid given a non-existent Company should not assign @job_postings
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:98:in `block (6 levels) in <top (required)>'
11) CompanyJobPostingsController As a public non-signed in visitor GET 'index' when invalid given a non-existent Company should respond with 404
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:98:in `block (6 levels) in <top (required)>'
12) CompanyJobPostingsController As a public non-signed in visitor GET 'index' and provide a keyword when valid when providing keywords, city and state only should render 'search_form' partial
Failure/Error: response.should render_template(partial: "company_job_postings/_search_form")
expecting partial <"company_job_postings/_search_form"> but action rendered <["job_postings/_job_postings",
"_job_postings",
"layouts/_topbar.html",
"_topbar.html",
"layouts/_head",
"_head",
"layouts/_notices",
"_notices",
"layouts/_footer",
"_footer"]>
# ./spec/controllers/company_job_postings_controller_spec.rb:181:in `block (6 levels) in <top (required)>'
13) CompanyJobPostingsController As a public non-signed in visitor GET 'index' and provide a keyword when valid when providing keywords, city and state only should assign @facets
Failure/Error: assigns(:facets).should be_a(Hash)
expected nil to be a kind of Hash
# ./spec/controllers/company_job_postings_controller_spec.rb:193:in `block (6 levels) in <top (required)>'
14) CompanyJobPostingsController As a public non-signed in visitor GET 'index' and provide a keyword when valid when providing keywords, city and state only @facets hash should include keys 'city, state, city_state, employer_id'
Failure/Error: assigns(:facets).keys.should include("city")
NoMethodError:
undefined method `keys' for nil:NilClass
# ./spec/controllers/company_job_postings_controller_spec.rb:197:in `block (6 levels) in <top (required)>'
15) CompanyJobPostingsController As a signed in Company Admin GET 'index' when invalid given a non-existent Company should not be successful
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:271:in `block (6 levels) in <top (required)>'
16) CompanyJobPostingsController As a signed in Company Admin GET 'index' when invalid given a non-existent Company should not assign @job_postings
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:271:in `block (6 levels) in <top (required)>'
17) CompanyJobPostingsController As a signed in Company Admin GET 'index' when invalid given a non-existent Company should redirect to the Company Admin's Company show page
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:271:in `block (6 levels) in <top (required)>'
18) CompanyJobPostingsController As a signed in Hiring Manager GET 'index' when invalid given a non-existent Company should not be successful
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:335:in `block (6 levels) in <top (required)>'
19) CompanyJobPostingsController As a signed in Hiring Manager GET 'index' when invalid given a non-existent Company should not assign @job_postings
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:335:in `block (6 levels) in <top (required)>'
20) CompanyJobPostingsController As a signed in Hiring Manager GET 'index' when invalid given a non-existent Company should redirect to the Hiring Manager's Company show page
Failure/Error: get :index, id: invalid_company_id
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/controllers/company_job_postings_controller_spec.rb:335:in `block (6 levels) in <top (required)>'
21) requests to public company_job_postings#index when company does not exist should return 404 status
Failure/Error: get "/companies/#{@invalid_company_id}/job_postings"
Pulsar::UnauthorizedAccess:
You need to sign in or sign up before continuing.
# ./app/controllers/company_job_postings_controller.rb:6:in `index'
# ./spec/requests/company_job_postings_response_codes_spec.rb:45:in `block (3 levels) in <top (required)>'
Finished in 1168.21 seconds
3896 examples, 21 failures, 71 pending
Failed examples:
rspec ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:51 # Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a non-signed in visitor should have response code of 404
rspec ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:55 # Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a non-signed in visitor should show the 404 page
rspec ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:74 # Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Company Admin should redirect the Company Admin to his Company's show page
rspec ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:78 # Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Company Admin should alert the Company Admin with an error message
rspec ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:99 # Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Hiring Manager should redirect the Hiring Manager to his Company's show page
rspec ./spec/acceptance/non-selenium-dependent/standard_error_handling_spec.rb:103 # Application-wide Error Handling listing a Company's Job Postings given a non-existent Company when visiting the Company Job Postings page as a Hiring Manager should alert the Hiring Manager with an error message
rspec ./spec/acceptance/non-selenium-dependent/users/hiring_manager/hiring_manager_view_metrics_index_spec.rb:111 # Hiring Manager View Job Posting Metrics A signed in Hiring Manager can view Job Posting Metrics when the Hiring Manager attempts to visit the Job Posting Metrics page the Job Posting Metrics page a Job Posting Metric should display the Job Posting title as a link to the Job Posting show page
rspec ./spec/controllers/company_job_postings_controller_spec.rb:64 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' when valid should render 'search_form' partial
rspec ./spec/controllers/company_job_postings_controller_spec.rb:105 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' when invalid given a non-existent Company should not be successful
rspec ./spec/controllers/company_job_postings_controller_spec.rb:109 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' when invalid given a non-existent Company should not assign @job_postings
rspec ./spec/controllers/company_job_postings_controller_spec.rb:113 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' when invalid given a non-existent Company should respond with 404
rspec ./spec/controllers/company_job_postings_controller_spec.rb:180 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' and provide a keyword when valid when providing keywords, city and state only should render 'search_form' partial
rspec ./spec/controllers/company_job_postings_controller_spec.rb:192 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' and provide a keyword when valid when providing keywords, city and state only should assign @facets
rspec ./spec/controllers/company_job_postings_controller_spec.rb:196 # CompanyJobPostingsController As a public non-signed in visitor GET 'index' and provide a keyword when valid when providing keywords, city and state only @facets hash should include keys 'city, state, city_state, employer_id'
rspec ./spec/controllers/company_job_postings_controller_spec.rb:278 # CompanyJobPostingsController As a signed in Company Admin GET 'index' when invalid given a non-existent Company should not be successful
rspec ./spec/controllers/company_job_postings_controller_spec.rb:282 # CompanyJobPostingsController As a signed in Company Admin GET 'index' when invalid given a non-existent Company should not assign @job_postings
rspec ./spec/controllers/company_job_postings_controller_spec.rb:286 # CompanyJobPostingsController As a signed in Company Admin GET 'index' when invalid given a non-existent Company should redirect to the Company Admin's Company show page
rspec ./spec/controllers/company_job_postings_controller_spec.rb:342 # CompanyJobPostingsController As a signed in Hiring Manager GET 'index' when invalid given a non-existent Company should not be successful
rspec ./spec/controllers/company_job_postings_controller_spec.rb:346 # CompanyJobPostingsController As a signed in Hiring Manager GET 'index' when invalid given a non-existent Company should not assign @job_postings
rspec ./spec/controllers/company_job_postings_controller_spec.rb:350 # CompanyJobPostingsController As a signed in Hiring Manager GET 'index' when invalid given a non-existent Company should redirect to the Hiring Manager's Company show page
rspec ./spec/requests/company_job_postings_response_codes_spec.rb:44 # requests to public company_job_postings#index when company does not exist should return 404 status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment