Comments (9)
- Are you using opal-rspec 0.5?
- Have you looked @ the note under 'Opal load path' on the README?
from opal-rspec.
I might be able to make this more clear in the README, but if your specs are still in 'spec' and you're just trying to add 'opal' to your load path, then you would do something like this:
Opal::RSpec::RakeTask.new(:default) do |server, task|
server.append_path 'opal'
end
from opal-rspec.
this works on opal-rspec 0.4.3
, thanks 👍, i got this error in version 0.5
though, here is the output
Running phantomjs /Users/Jose/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/opal-rspec-0
.5.0/vendor/spec_runner.js "http://localhost:9999/"
opal-rspec - checking pp/pretty print features
TypeError: 'undefined' is not an object (evaluating 'system.stdout.write')
/Users/Jose/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/opal-rspec-0.5.0/vendor/spec
_runner.js:21
:/modules/webpage.js:143
Specs timed out
i'll just use 0.4.3 for now , i'll probably open a new issue for this, thank you very much :)
from opal-rspec.
0.4.3 is pretty dated so if you can give more details (opal version, code sample, etc.) about reproducing that error w/ 0.5, that would be great.
from opal-rspec.
Im creating specs for a gem, this is the rakefile (with the changes u suggested):
# Rakefile
require 'opal/rspec/rake_task'
Opal::RSpec::RakeTask.new(:default) do |server, task|
server.append_path 'opal'
end
i have this one (dummy) test, which needed the music/note
file under opal:
require 'music/note'
describe Music::Note do
describe 'assertion' do
it 'is true' do
described_class.new 'F2 w'
expect(true).to be true
end
end
end
when running bundle exec rake
i got this error
.5.0/vendor/spec_runner.js "http://localhost:9999/"
opal-rspec - checking pp/pretty print features
TypeError: 'undefined' is not an object (evaluating 'system.stdout.write')
/Users/Jose/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/opal-rspec-0.5.0/vendor/spec
_runner.js:21
:/modules/webpage.js:143
JSpecs timed out
Im using opal 0.8.0
from opal-rspec.
What version of phantomjs are you running? (phantomjs -v
)
from opal-rspec.
@wied03 1.8.2
from opal-rspec.
at least 1.9.8 is required (we don't test below that). Can you try upgrading and see if that fixes the issue?
from opal-rspec.
@wied03 sorry for the late response, yea indeed using phatomjs 1.9.8 make it work, thanks 😄
from opal-rspec.
Related Issues (20)
- Performance Improvement Ideas HOT 4
- issues with opal 0.10.0 HOT 4
- Results Reporting Sync/Async HOT 1
- filter_run_excluding not working? HOT 1
- how to require gem or a source file ? HOT 5
- stub_const doesn't work quite the same in opal 0.9 HOT 9
- Opal-Master Compatibility
- Sprockets HOT 1
- Support random order HOT 2
- Opal::RSpec::RakeTask HOT 4
- `expect_any_instance_of` is not working when using opal master HOT 5
- Trying to run phantomjs or in-browser tests throws Sprockets::FileNotFound HOT 3
- Get ` cannot load such file -- rake` when run test in browser. HOT 2
- Could not found jquery when use node as task runner. HOT 1
- spec not worked with opal 0.11. (chrome headless) HOT 11
- Unable to require 'nodejs' in spec HOT 2
- uninitialized constant OPAL_PLATFORM HOT 8
- Headless Chrome support HOT 3
- Can you release a new version? HOT 3
- opal-rspec --init leads to erro cannot load such file -- opal-sprockets (LoadError) HOT 3
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 opal-rspec.