GithubHelp home page GithubHelp logo

Comments (4)

searls avatar searls commented on June 1, 2024

Woah, that's weird. Any comment, @wireframe?

On Tue, Jan 14, 2014 at 5:58 PM, Kevin Old [email protected] wrote:

Hi,

I'm on a project with Rails 3.1 as the version and I am getting the error
below when trying to navigate to /specs. I'm using 0.5.4 of jasmine-rails.

I define the mount at the top of routes.rb:

Project31::Application.routes.draw do

mount JasmineRails::Engine => '/specs' if defined?(JasmineRails)

And receive this error:

wrong constant name JasmineRails/specRunnerController
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:in
const_defined?'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:inblock
in constantize'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in
each'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in
constantize'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:528:in
block in initialize'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:550:in
yield'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:550:in
[]'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:67:in
controller_reference'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:52:in
controller'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:31:in
call'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in
block in call'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:inblock
in recognize'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:68:in
optimized_each'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in
recognize'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:538:in
call'
/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/engine.rb:456:in
call'

/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/railtie/configurable.rb:30:in
method_missing'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/prefix.rb:26:in
call'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:inblock
in call'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in
block in recognize'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in
optimized_each'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in
recognize'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:538:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/etag.rb:23:in
call'

/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/conditionalget.rb:25:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/head.rb:14:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/params_parser.rb:21:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/flash.rb:243:in
call'

/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/session/abstract/id.rb:195:in
context'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/session/abstract/id.rb:190:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/cookies.rb:331:in
call'
/Users/kevinold/project31/.gems/gems/activerecord-3.1.12/lib/active_record/query_cache.rb:64:in
call'

/Users/kevinold/project31/.gems/gems/activerecord-3.1.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/callbacks.rb:29:in
block in call'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/callbacks.rb:392:in
_run_call_callbacks'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/callbacks.rb:81:in
run_callbacks'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/callbacks.rb:28:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/sendfile.rb:101:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/remote_ip.rb:48:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/show_exceptions.rb:47:in
call'

/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/rack/logger.rb:13:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/methodoverride.rb:24:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/runtime.rb:17:in
call'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/cache/strategy/local_cache.rb:72:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/lock.rb:15:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/static.rb:61:in
call'

/Users/kevinold/project31/.gems/gems/airbrake-3.1.2/lib/airbrake/rack.rb:42:in
call'
/Users/kevinold/project31/.gems/gems/airbrake-3.1.2/lib/airbrake/user_informer.rb:12:in
call'

/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/engine.rb:456:in
call'
/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/application.rb:143:in
call'

/Users/kevinold/project31/.gems/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in
request'
/Users/kevinold/project31/.gems/gems/rack-test-0.6.2/lib/rack/test.rb:230:in
process_request'

/Users/kevinold/project31/.gems/gems/rack-test-0.6.2/lib/rack/test.rb:123:in
request'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/testing/integration.rb:297:in
process'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/testing/integration.rb:33:in
get'
/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:56:in
get_spec_runner'

/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:13:inblock
in run'
/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:46:in
override_rails_config'

/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:9:in
run'
/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/tasks/jasmine-rails_tasks.rake:7:in
`block (2 levels) in '
Tasks: TOP => spec:javascript

I have not been able to find a solution. Any help would be appreciated.


Reply to this email directly or view it on GitHubhttps://github.com//issues/99
.

from jasmine-rails.

wireframe avatar wireframe commented on June 1, 2024

Is this a regression with an existing app updating to the latest version or an error setting it up for the first time?

Rails 3.1 has reached end of life status (with the exception of severe security fixes), and I haven’t done any testing with any version older than 3.2.  Mountable engines were introduced in 3.1 and my only guess would be that Rails 3.1 has a bug with it’s engine routing?
-- 

Ryan Sonnek

[codecrate] Building better code
http://www.codecrate.com

On January 14, 2014 at 5:08:48 PM, Justin Searls ([email protected]) wrote:

Woah, that's weird. Any comment, @wireframe?

On Tue, Jan 14, 2014 at 5:58 PM, Kevin Old [email protected] wrote:

Hi,

I'm on a project with Rails 3.1 as the version and I am getting the error
below when trying to navigate to /specs. I'm using 0.5.4 of jasmine-rails.

I define the mount at the top of routes.rb:

Project31::Application.routes.draw do

mount JasmineRails::Engine => '/specs' if defined?(JasmineRails)

And receive this error:

wrong constant name JasmineRails/specRunnerController
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:in
const_defined?'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:inblock
in constantize'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in
each'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in
constantize'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:528:in
block in initialize'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:550:in
yield'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/dependencies.rb:550:in
[]'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:67:in
controller_reference'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:52:in
controller'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:31:in
call'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in
block in call'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:inblock
in recognize'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:68:in
optimized_each'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in
recognize'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:538:in
call'
/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/engine.rb:456:in
call'

/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/railtie/configurable.rb:30:in
method_missing'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/prefix.rb:26:in
call'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:inblock
in call'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in
block in recognize'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75:in
optimized_each'
/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in
recognize'

/Users/kevinold/project31/.gems/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/routing/route_set.rb:538:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/etag.rb:23:in
call'

/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/conditionalget.rb:25:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/head.rb:14:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/params_parser.rb:21:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/flash.rb:243:in
call'

/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/session/abstract/id.rb:195:in
context'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/session/abstract/id.rb:190:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/cookies.rb:331:in
call'
/Users/kevinold/project31/.gems/gems/activerecord-3.1.12/lib/active_record/query_cache.rb:64:in
call'

/Users/kevinold/project31/.gems/gems/activerecord-3.1.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/callbacks.rb:29:in
block in call'

/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/callbacks.rb:392:in
_run_call_callbacks'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/callbacks.rb:81:in
run_callbacks'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/callbacks.rb:28:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/sendfile.rb:101:in
call'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/remote_ip.rb:48:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/show_exceptions.rb:47:in
call'

/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/rack/logger.rb:13:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/methodoverride.rb:24:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/runtime.rb:17:in
call'
/Users/kevinold/project31/.gems/gems/activesupport-3.1.12/lib/active_support/cache/strategy/local_cache.rb:72:in
call'
/Users/kevinold/project31/.gems/gems/rack-1.3.10/lib/rack/lock.rb:15:in
call'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/middleware/static.rb:61:in
call'

/Users/kevinold/project31/.gems/gems/airbrake-3.1.2/lib/airbrake/rack.rb:42:in
call'
/Users/kevinold/project31/.gems/gems/airbrake-3.1.2/lib/airbrake/user_informer.rb:12:in
call'

/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/engine.rb:456:in
call'
/Users/kevinold/project31/.gems/gems/railties-3.1.12/lib/rails/application.rb:143:in
call'

/Users/kevinold/project31/.gems/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in
request'
/Users/kevinold/project31/.gems/gems/rack-test-0.6.2/lib/rack/test.rb:230:in
process_request'

/Users/kevinold/project31/.gems/gems/rack-test-0.6.2/lib/rack/test.rb:123:in
request'
/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/testing/integration.rb:297:in
process'

/Users/kevinold/project31/.gems/gems/actionpack-3.1.12/lib/action_dispatch/testing/integration.rb:33:in
get'
/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:56:in
get_spec_runner'

/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:13:inblock
in run'
/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:46:in
override_rails_config'

/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/jasmine_rails/runner.rb:9:in
run'
/Users/kevinold/project31/.gems/gems/jasmine-rails-0.5.4/lib/tasks/jasmine-rails_tasks.rake:7:in
`block (2 levels) in '
Tasks: TOP => spec:javascript

I have not been able to find a solution. Any help would be appreciated.


Reply to this email directly or view it on GitHubhttps://github.com//issues/99
.


Reply to this email directly or view it on GitHub.

from jasmine-rails.

kevinold avatar kevinold commented on June 1, 2024

Oops, accidentally closed. I'll try to see if I can dig into Rails 3.1 for the immediate need and see if we can get to Rails 3.2.

Thanks.

from jasmine-rails.

kevinold avatar kevinold commented on June 1, 2024

It looks like we might be running into an issue with the right-aws 2.0.0 gem:

a="JasmineRails::SpecRunnerController"
=> "JasmineRails::SpecRunnerController" 
1.9.3-p484 :007 > binding.pry
[1] pry(main)> cd a
[2] pry("JasmineRails::SpecRunnerController"):1> $ constantize

From: /Users/eddyk/.rvm/gems/ruby-1.9.3-p484@rails3/gems/right_aws-2.0.0/lib/awsbase/support.rb @ line 42:
Owner: String
Visibility: public
Number of lines: 7

def constantize()
  unless /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/ =~ self
    raise NameError, "#{self.inspect} is not a valid constant name!"
  end

  Object.module_eval("::#{$1}", __FILE__, __LINE__)
end

I'll close this issue, but will update with our resolution.

from jasmine-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.