Comments (6)
Bummer! Sorry about the pain you experienced. Any chance you can post your project to github for me to tinker with?
from jasmine-rails.
Thanks for getting back to me so quickly! I cloned my repo and made it
public here:
https://github.com/mattjgarland/public_howxru
Thanks!
On Mon, May 13, 2013 at 12:10 PM, Matt Garland [email protected]:
Hi Justin, thanks for getting back to me so quickly. I've attached a zip
of the project (only 3.5 mb). If it is easier to work form a clone from
github, don't hesitate to say so, I'll make it happen.Matt
On Mon, May 13, 2013 at 11:56 AM, Justin Searls [email protected]:
Bummer! Sorry about the pain you experienced. Any chance you can post
your project to github for me to tinker with?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-17832760
.Matt Garland
[email protected]
http://facebook.com/matt.garland.77/notes
www.linkedin.com/pub/matt-garland/12/740/481
(415) 508-7380
Matt Garland
[email protected]
http://facebook.com/matt.garland.77/notes
www.linkedin.com/pub/matt-garland/12/740/481
(415) 508-7380
from jasmine-rails.
@mattgarland one thing of note is your test_jasmine_spec,js file name has a comma in it. I believe you're trying to use .js as the extension.
from jasmine-rails.
Thanks for the catch! The 404 error came up before I even created that
file--I created it (too) quickly just to see if a runner would be created.
Just checked it and no go.
On Mon, May 13, 2013 at 12:45 PM, Ryan Castillo [email protected]:
@mattgarland one thing of note is your test_jasmine_spec,js file name has
a comma in it. I believe you're trying to use .js as the extension.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-17835747
.
Matt Garland
[email protected]
http://facebook.com/matt.garland.77/notes
www.linkedin.com/pub/matt-garland/12/740/481
(415) 508-7380
from jasmine-rails.
@mattjgarland its because the line match ':action' => 'static#:action'
occurs before your mount for jasmine rails in your routes.rb. That line is forcing the specs path to be found in your StaticController as an action which of course doesn't exist. A good rule of thumb with your routes file is to keep your very specific routes at the top of the file and more general ones on the bottom. I would just the mount JasmineRails line to line 2 and you should be good to go.
from jasmine-rails.
Hey @mattjgarland, I found your (other) issue. In routes.rb, you're specifying root
near the top, which means that everything is going to the StaticController.
I was able to get to jasmine-rails by just mounting it earlier than root
, e.g.
Howxru::Application.routes.draw do
resources :articles do
resources :shows
end
mount JasmineRails::Engine => "/specs" if defined?(JasmineRails)
root :to => "static#home"
match ':action' => 'static#:action'
from jasmine-rails.
Related Issues (20)
- Add Rails 5 to the build matrix
- "PhantomJS has crashed" problem when upgrade to PhantomJS 2.1.1 HOT 18
- "phantom_options: --debug=true" fails with "Invalid values for 'debug' option." HOT 3
- How to make jasmine-rails find jasmine HOT 1
- Error when running tests HOT 2
- `rake spec:javascript` shouldn't short circuit a chain of rake commands
- $templateCache not being hit HOT 1
- Using angular 1.3.2 will break jasmine specs HOT 1
- Empty spec causes infinite loop hang HOT 1
- Trouble with running tests in terminal HOT 5
- Error executing command HOT 2
- Out of date monkey patch on `compute_asset_path` breaks minitest on Rails 5.0.1+
- Running rake spec:javascript from terminal does not find specs HOT 3
- Suggest that users run with RAILS_ENV=test HOT 2
- SPEC= not working
- commandline skips all specs HOT 6
- Sourcemap on /assets/jasmine-specs.js HOT 1
- Update comment in offline_asset_paths.rb for newer versions of Rails HOT 4
- Add support for jasmine-core 3.x.x? HOT 3
- PhantomJs has been archived - Replace it with Headless Chrome HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jasmine-rails.