Comments (11)
Chad and Kabari are working on this (rspec hackfest FTW).
from rspec-core.
Nobody is working on this now, so if anybody else wants to, just add a comment here that you're doing so.
from rspec-core.
I got this one.
from rspec-core.
David, I sent you a pull request before realizing you'd rather have "pull requests" pasted here. I'll do that from now on.
from rspec-core.
justinko's patch: http://github.com/justinko/rspec-core/commit/291d316
from rspec-core.
Hey Justin - I applied your patch and got a syntax error
lib/rspec/core/command_line_configuration.rb:51: syntax error, unexpected $end, expecting kEND (SyntaxError)
After addressing that, all the specs and cukes passed, but when I tried it on the command line with a pre-existing autotest/discover.rb
, I got this:
/Users/dchelimsky/projects/ruby/rspec2/repos/rspec-core/lib/rspec/core/command_line_configuration.rb:29:in `create_discover_file': undefined local variable or method `optionally_remove_discover_file' for RSpec::Core::CommandLineConfiguration::Autotest:Class (NameError)
Wanna take another shot?
from rspec-core.
Fixed: http://github.com/justinko/rspec-core/commit/81d2be8
Question. Since aruba cannot cover the "gets" method, should I test it with RSpec doing something like this?: http://technicalpickles.com/posts/a-pattern-for-using-standard-in-and-out-in-your-ruby-code/
Thanks David.
from rspec-core.
@justinko - No need to modify the design like that. This isn't java :) You can stub gets right on the object:
interactor = Interactor.new interactor.stub(:gets).and_return("this") interactor.method_that_adds_and_that_to_gets.should eq("this and that")
I generally try avoid stubbing methods on the subject of an example, but I'd probably go for the tradeoff here.
from rspec-core.
I applied your patch (from 2 comments back) and got the same syntax error, and then got this after fixing it and trying to run:
lib/rspec/core/backward_compatibility.rb:20:in `const_missing': uninitialized constant RSpec::Core::Parser::CommandLineConfiguration (NameError)
from rspec-core.
I'm getting no errors with HEAD. I created another clean branch, try using this one:
http://github.com/justinko/rspec-core/commit/ff5770e
from rspec-core.
Works. Merged: http://github.com/rspec/rspec-core/commit/f72032432b8fcef5cfa810cb020d8bd2f816a272
Thx!
from rspec-core.
Related Issues (20)
- Test summary confusingly list tests marked as `skip()` under `pending` HOT 9
- How can I add a custom command option for rspec --order like `rspec --order prioritized` HOT 2
- Option for "Caused by" backtraces to print more than just the first line HOT 3
- Feature Request: means of troubleshooting intermittent failures that do not depend on sequence HOT 4
- disable_monkey_patching url in spec helper template links to unavailable Relish documentation HOT 10
- update repository 'About' setting to use rspec.info docs url instead of Relish
- suggest an option for splitting specified files HOT 1
- Request for an _appropriate_ way to tell if all of the examples in a given ExampleGroup are being executed
- Raise errors if `it` executed in a `before` block HOT 1
- Introduce stub_env helper HOT 1
- Nested `skip` behaves weird, is this intended? HOT 1
- Shared contexts/examples files_organization / code_loading HOT 6
- Calling `before` or `after` in an invalid context that will never run should raise an error HOT 3
- RSpec skipping at_exit hooks on force quit HOT 1
- No way to filter tags with and logic HOT 3
- The SPEC environment variable does not support using bracketed example IDs HOT 9
- Guard against name collisions with internals HOT 2
- add :context scope to let method HOT 2
- Add `--only-pending` CLI option which filters to only the pending examples HOT 3
- Requiring rspec before IRB console causes warning HOT 1
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 rspec-core.