Skip to content

Instantly share code, notes, and snippets.

@eloyesp
Created June 18, 2020 18:08
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 eloyesp/196cae8f0c36598609479d4c71441e70 to your computer and use it in GitHub Desktop.
Save eloyesp/196cae8f0c36598609479d4c71441e70 to your computer and use it in GitHub Desktop.
Test output without changes.
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 1
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*...................................................................F.F..F..F.............................................................................................................
Pending: (Failures listed here are expected and do not affect your suite's status)
1) RSpec::Rails::ControllerExampleGroup in a namespace sets up resourceful routes on the example
# Not yet implemented
# ./spec/rspec/rails/example/controller_example_group_spec.rb:209
Failures:
1) Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=posts the generator sends the GET request to the index path
Failure/Error: expect(request_spec).to contain(/get posts_index_path/)
expected the file /mnt/shared/eloyesp/projects/clones/rspec-rails/tmp/spec/requests/posts_spec.rb to contain /get posts_index_path/ but it contained "require 'rails_helper'\n\nRSpec.describe \"Posts\", type: :request do\n\nend\n"
Shared Example Group: "a request spec generator" called from ./spec/generators/rspec/controller/controller_generator_spec.rb:7
# ./spec/support/generators.rb:84:in `block (4 levels) in '
# ./spec/spec_helper.rb:57:in `block (2 levels) in '
2) Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=posts the generator includes a sample GET request
Failure/Error: expect(request_spec).to contain(/describe "GET \/posts"/)
expected the file /mnt/shared/eloyesp/projects/clones/rspec-rails/tmp/spec/requests/posts_spec.rb to contain /describe "GET \/posts"/ but it contained "require 'rails_helper'\n\nRSpec.describe \"Posts\", type: :request do\n\nend\n"
Shared Example Group: "a request spec generator" called from ./spec/generators/rspec/controller/controller_generator_spec.rb:7
# ./spec/support/generators.rb:80:in `block (4 levels) in '
# ./spec/spec_helper.rb:57:in `block (2 levels) in '
3) Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=api/posts the generator includes a sample GET request
Failure/Error: expect(request_spec).to contain(/describe "GET \/api\/posts\"/)
expected the file /mnt/shared/eloyesp/projects/clones/rspec-rails/tmp/spec/requests/api/posts_spec.rb to contain /describe "GET \/api\/posts\"/ but it contained "require 'rails_helper'\n\nRSpec.describe \"Api::Posts\", type: :request do\n\nend\n"
Shared Example Group: "a request spec generator" called from ./spec/generators/rspec/controller/controller_generator_spec.rb:7
# ./spec/support/generators.rb:108:in `block (4 levels) in '
# ./spec/spec_helper.rb:57:in `block (2 levels) in '
4) Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=api/posts the generator sends the GET request to the index path
Failure/Error: expect(request_spec).to contain(/get api_posts_index_path\n/)
expected the file /mnt/shared/eloyesp/projects/clones/rspec-rails/tmp/spec/requests/api/posts_spec.rb to contain /get api_posts_index_path\n/ but it contained "require 'rails_helper'\n\nRSpec.describe \"Api::Posts\", type: :request do\n\nend\n"
Shared Example Group: "a request spec generator" called from ./spec/generators/rspec/controller/controller_generator_spec.rb:7
# ./spec/support/generators.rb:112:in `block (4 levels) in '
# ./spec/spec_helper.rb:57:in `block (2 levels) in '
Finished in 3.11 seconds (files took 2 seconds to load)
1035 examples, 4 failures, 1 pending
Failed examples:
rspec ./spec/generators/rspec/controller/controller_generator_spec.rb[1:1:2:1:5] # Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=posts the generator sends the GET request to the index path
rspec ./spec/generators/rspec/controller/controller_generator_spec.rb[1:1:2:1:4] # Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=posts the generator includes a sample GET request
rspec ./spec/generators/rspec/controller/controller_generator_spec.rb[1:1:2:2:4] # Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=api/posts the generator includes a sample GET request
rspec ./spec/generators/rspec/controller/controller_generator_spec.rb[1:1:2:2:5] # Rspec::Generators::ControllerGenerator behaves like a request spec generator generated with no flags When NAME=api/posts the generator sends the GET request to the index path
Randomized with seed 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment