Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created February 18, 2017 13:55
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 Epigene/e56d433e6928c4612df1af43505d056d to your computer and use it in GitHub Desktop.
Save Epigene/e56d433e6928c4612df1af43505d056d to your computer and use it in GitHub Desktop.
Ryan pull request failures
Failures:
1) Ryan::Const#name when given a module when the module is namespaced when the module has a const after the module declaration returns the correct module name
Failure/Error: expect(Kernel.const_get(subject.name)).to eq Mixins::Helpers
NameError:
wrong constant name Mixins::Helpers
# ./spec/lib/ryan/const_spec.rb:29:in `const_get'
# ./spec/lib/ryan/const_spec.rb:29:in `block (6 levels) in <top (required)>'
2) Ryan::Const#name when given a class when the class is namespaced returns the full modularized name
Failure/Error: expect(Kernel.const_get(subject.name)).to eq Extensions::Array
NameError:
wrong constant name Extensions::Array
# ./spec/lib/ryan/const_spec.rb:54:in `const_get'
# ./spec/lib/ryan/const_spec.rb:54:in `block (5 levels) in <top (required)>'
3) Ryan::Const#name when given a class when class is defined with namespace on same line returns the class name
Failure/Error: expect(Kernel.const_get(subject.name)).to eq Admin::Super::UsersController
NameError:
wrong constant name Admin::Super::UsersController
# ./spec/lib/ryan/const_spec.rb:71:in `const_get'
# ./spec/lib/ryan/const_spec.rb:71:in `block (5 levels) in <top (required)>'
4) Ryan::Const#name when given a class when class is defined with namespace on same line with more inheritance returns the class name
Failure/Error: expect(Kernel.const_get(subject.name)).to eq Admin::Setup::Users::PofilesController
NameError:
wrong constant name Admin::Setup::Users::PofilesController
# ./spec/lib/ryan/const_spec.rb:79:in `const_get'
# ./spec/lib/ryan/const_spec.rb:79:in `block (6 levels) in <top (required)>'
Finished in 0.14325 seconds (files took 0.34332 seconds to load)
60 examples, 4 failures
Failed examples:
rspec ./spec/lib/ryan/const_spec.rb:27 # Ryan::Const#name when given a module when the module is namespaced when the module has a const after the module declaration returns the correct module name
rspec ./spec/lib/ryan/const_spec.rb:52 # Ryan::Const#name when given a class when the class is namespaced returns the full modularized name
rspec ./spec/lib/ryan/const_spec.rb:69 # Ryan::Const#name when given a class when class is defined with namespace on same line returns the class name
rspec ./spec/lib/ryan/const_spec.rb:77 # Ryan::Const#name when given a class when class is defined with namespace on same line with more inheritance returns the class name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment