Skip to content

Instantly share code, notes, and snippets.

@connorshea
Created July 2, 2019 04:38
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 connorshea/2e19621e5f9ad7e3d4ab26ef66a805cf to your computer and use it in GitHub Desktop.
Save connorshea/2e19621e5f9ad7e3d4ab26ef66a805cf to your computer and use it in GitHub Desktop.
Connors-MacBook-Pro:vglist connorshea$ bundle exec rspec spec/requests/platforms_spec.rb
Randomized with seed 42292
1) Platforms GET platform_path returns http success for platform that has everything
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
ActionView::Template::Error:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/views/platforms/show.html.erb:7:in `_app_views_platforms_show_html_erb___4449072637185718385_70121627278200'
# ./spec/requests/platforms_spec.rb:22:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
2) Platforms GET platform_path returns http success
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
ActionView::Template::Error:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/views/platforms/show.html.erb:7:in `_app_views_platforms_show_html_erb___4449072637185718385_70121627278200'
# ./spec/requests/platforms_spec.rb:17:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
3) Platforms GET new_platform_path returns http success
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:25:in `new'
# ./spec/requests/platforms_spec.rb:32:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
4) Platforms PUT platform_path fails to update platform
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:46:in `update'
# ./spec/requests/platforms_spec.rb:91:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
5) Platforms PUT platform_path updates platform description
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:46:in `update'
# ./spec/requests/platforms_spec.rb:83:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
6) Platforms DELETE platform_path deletes a platform
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:58:in `destroy'
# ./spec/requests/platforms_spec.rb:103:in `block (4 levels) in <top (required)>'
# ./spec/requests/platforms_spec.rb:102:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
7) Platforms POST platforms_path creates a new platform
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:35:in `create'
# ./spec/requests/platforms_spec.rb:62:in `block (4 levels) in <top (required)>'
# ./spec/requests/platforms_spec.rb:61:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
8) Platforms POST platforms_path fails to create a new platform
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:35:in `create'
# ./spec/requests/platforms_spec.rb:70:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
9) Platforms GET edit_platform_path returns http success for platform that has everything
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:30:in `edit'
# ./spec/requests/platforms_spec.rb:50:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
10) Platforms GET edit_platform_path returns http success
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:30:in `edit'
# ./spec/requests/platforms_spec.rb:44:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
11) Platforms GET platforms_path returns http success
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
ActionView::Template::Error:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/views/platforms/index.html.erb:6:in `_app_views_platforms_index_html_erb__3686063074382749271_70121665044400'
# ./spec/requests/platforms_spec.rb:7:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
12) Platforms GET search_platforms_path returns no platform when no query is given
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:70:in `search'
# ./spec/requests/platforms_spec.rb:126:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
13) Platforms GET search_platforms_path returns the given platform
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:70:in `search'
# ./spec/requests/platforms_spec.rb:114:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
14) Platforms GET search_platforms_path returns no platform
Failure/Error: sig { params(user: T.nilable(User), platform: T.nilable(Platform::Relation)).void }
NameError:
uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
# ./app/controllers/platforms_controller.rb:70:in `search'
# ./spec/requests/platforms_spec.rb:120:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant Platform::Relation
# ./app/policies/platform_policy.rb:10:in `block in <class:PlatformPolicy>'
14/14 |======================================================== 100 ========================================================>| Time: 00:00:02
Top 5 slowest examples (2.04 seconds, 81.1% of total time):
Platforms GET new_platform_path returns http success
0.96275 seconds ./spec/requests/platforms_spec.rb:30
Platforms GET platform_path returns http success for platform that has everything
0.81393 seconds ./spec/requests/platforms_spec.rb:21
Platforms PUT platform_path fails to update platform
0.13019 seconds ./spec/requests/platforms_spec.rb:87
Platforms GET edit_platform_path returns http success for platform that has everything
0.06799 seconds ./spec/requests/platforms_spec.rb:48
Platforms PUT platform_path updates platform description
0.06598 seconds ./spec/requests/platforms_spec.rb:80
Finished in 2.52 seconds (files took 8.27 seconds to load)
14 examples, 14 failures
Failed examples:
rspec ./spec/requests/platforms_spec.rb:21 # Platforms GET platform_path returns http success for platform that has everything
rspec ./spec/requests/platforms_spec.rb:16 # Platforms GET platform_path returns http success
rspec ./spec/requests/platforms_spec.rb:30 # Platforms GET new_platform_path returns http success
rspec ./spec/requests/platforms_spec.rb:87 # Platforms PUT platform_path fails to update platform
rspec ./spec/requests/platforms_spec.rb:80 # Platforms PUT platform_path updates platform description
rspec ./spec/requests/platforms_spec.rb:100 # Platforms DELETE platform_path deletes a platform
rspec ./spec/requests/platforms_spec.rb:59 # Platforms POST platforms_path creates a new platform
rspec ./spec/requests/platforms_spec.rb:66 # Platforms POST platforms_path fails to create a new platform
rspec ./spec/requests/platforms_spec.rb:48 # Platforms GET edit_platform_path returns http success for platform that has everything
rspec ./spec/requests/platforms_spec.rb:42 # Platforms GET edit_platform_path returns http success
rspec ./spec/requests/platforms_spec.rb:6 # Platforms GET platforms_path returns http success
rspec ./spec/requests/platforms_spec.rb:124 # Platforms GET search_platforms_path returns no platform when no query is given
rspec ./spec/requests/platforms_spec.rb:112 # Platforms GET search_platforms_path returns the given platform
rspec ./spec/requests/platforms_spec.rb:118 # Platforms GET search_platforms_path returns no platform
Randomized with seed 42292
Coverage report generated for RSpec to /Users/connorshea/Programming/vglist/coverage. 184 / 1827 LOC (10.07%) covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment