Comments (10)
I'm working on cleaning up a lot of the integrations code (the top of that stacktrace is the file I'm working on). Do you have a sample spec that I could see to help give me an idea of how you're using the gem?
from sauce_ruby.
Hey guys, we're having the exact same problem with this gem when trying to execute the 'rspec' command. We have a Rails app alongside a ruby application that uses selenium webdriver with the sauce_ruby gem. If we add the sauce_ruby gem to the test environment in the Rails Gemfile, we get the error described above.
from sauce_ruby.
Is the sauce gem useable with Rspec 2 at all?
from sauce_ruby.
I don't know why it wouldn't work, but I don't have a lot of good examples to work with yet :-/
Got some sample code I could look at?
from sauce_ruby.
I tried to reproduce this with what I know about the RSpec integration, and have created a reproduction repository here which does not reproduce your issue.
See the following transcript:
-> % bundle exec rspec -c -f d
[DEPRECATED] This method (browser_url=) is deprecated, please use the [] and []= accessors instead
[DEPRECATED] This method (browsers=) is deprecated, please use the [] and []= accessors instead
[DEPRECATED] This method (application_host) is deprecated, please use the [] and []= accessors instead
The Sauce Labs website
[DEPRECATED] This method (browser_url) is deprecated, please use the [] and []= accessors instead
[DEPRECATED] This method (capture_traffic?) is deprecated, please use the [] and []= accessors instead
should have a home page
Finished in 33.76 seconds
1 example, 0 failures
It should be mentioned that this is with RSpec 2.10.0.
Does this reproduction case not look like your local set up? If not, what should be changed to reproduce this issue?
from sauce_ruby.
I am seeing the same error the op saw. First time using the sauce gem. I also have rspec 2.10.0, although I am not including it directly, it's being pulled in by 'rspec-rails'.
However, the approach you list of
bundle exec rspec -c -f d
is not the same as the instructions on the main github page for this gem, which suggests:
rake rspec:selenium:sauce
By googling around, it seems that similar errors have been due to include/require collisions.
from sauce_ruby.
I believe I've deprecated the selenium:sauce
Rake task in the most recent (2.0) release of the Sauce gem. I'd be interested to know whether it's worth bringing back more "official" support for RSpec-based browser tests
from sauce_ruby.
With the addition of peripheral gems in the 2.1 release, I think it now makes sense to create a sauce-rspec
gem which creates a good "default workflow" for RSpec users.
I may or may not create a separate ticket for that, but either way, I'd like to throw the old (bad) RSpec support out the window entirely and start fresh!
from sauce_ruby.
I've created a new ticket (#91) to track the work on creating a new sauce-rspec
gem to provide good and reasonable support for RSpec/Capybara usage.
I don't think GitHub allows you to add yourself as a watcher to a ticket without commenting on it, so please add a silly comment to #91 to track its progress :)
from sauce_ruby.
@rtyler that was true until recently. Under the comment area you can see a dropdown for thread notifications and subscribe to tickets without commenting.
from sauce_ruby.
Related Issues (20)
- Don't send invalid caps HOT 4
- require "sauce/capybara" in sauce_helper.rb hangs on circleci HOT 1
- Cucumber should be usable without Capybara HOT 1
- Sauce Connect startup errors are swallowed and don't abort tests anymore.
- Jenkins parallel features undefined method browser HOT 2
- Setup coveralls.io code coverage HOT 1
- 2438 rubocop offenses detected HOT 3
- Tests run fine on sauce until we enable parallelization HOT 13
- Sauce gem always fails with uninitialized constant Sauce::RSpec::Spec HOT 4
- Incompatible with new parallel_tests gem due to version restriction HOT 2
- Purge stale branches HOT 1
- Super fast tests with parallel_split_test HOT 2
- Seeing an error in the sauce gem HOT 3
- Running ruby sauce tests using manually started tunnel? HOT 1
- Better account for spec AND browser runtime differences
- How to use Microsoft Edge? HOT 1
- Running tests on multiple browsers using MiniTest::Spec HOT 1
- Rails server could not be killed
- Auto Close Alerts Configuration
- Running Sauce Tests Locally 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 sauce_ruby.