Giter Club home page Giter Club logo

Comments (10)

rtyler avatar rtyler commented on September 12, 2024

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.

bbonamin avatar bbonamin commented on September 12, 2024

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.

estahn avatar estahn commented on September 12, 2024

Is the sauce gem useable with Rspec 2 at all?

from sauce_ruby.

rtyler avatar rtyler commented on September 12, 2024

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.

rtyler avatar rtyler commented on September 12, 2024

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.

 avatar commented on September 12, 2024

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.

rtyler avatar rtyler commented on September 12, 2024

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.

rtyler avatar rtyler commented on September 12, 2024

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.

rtyler avatar rtyler commented on September 12, 2024

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.

hjdivad avatar hjdivad commented on September 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.