SimonRice / middleman-rspec

A very simple example of using RSpec & Capybara with Middleman
Other
26 stars 3 forks source link

JavaScript isn't executed when using capybara-webkit #3

Closed exupero closed 10 years ago

exupero commented 10 years ago

When using capybara-webkit as the JavaScript driver, JavaScript code in all.js is executed, but code in the required files is not. I suspect Sprockets is not processing all.js and producing the complete JavaScript file.

I have a fork of this project with a failing test that demonstrates the problem.

exupero commented 10 years ago

Looks like this can be fixed by adding to config.rb:

set :debug_assets, true
seabre commented 8 years ago

Whoa. Thanks @exupero, I've been fighting this for a good bit. This was exactly what I needed to get my tests with JS going.