Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method opt= for RSpec::Core::RakeTask #246

Closed
rchady opened this issue Nov 19, 2017 · 5 comments
Closed

Undefined method opt= for RSpec::Core::RakeTask #246

rchady opened this issue Nov 19, 2017 · 5 comments
Assignees

Comments

@rchady
Copy link

rchady commented Nov 19, 2017

Meta

Howitzer Version:

Driver and browser information:

Gem Versions:

Expected Behavior

howitzer works

Actual Behavior

Receiving the following error:

rake aborted!
NoMethodError: undefined method `opts=' for #<RSpec::Core::RakeTask:0x007fc1621d3550>
./test/tasks/rspec.rake:18:in `block in <top (required)>'
Tasks: TOP => default => features
(See full trace by running task with --trace)

Steps to reproduce

  1. Install howitzer
  2. Edit config/default.yml (only made some browserstack specific changes)
  1. rake

Was looking for a good place to get started, so tried to just get it working. Not sure what is wrong at this point.

@alexey-voronenko
Copy link
Contributor

Hi @rchady,
It seems 'opts' variable was deprecated a while ago by rspec, please replace it with 'rspec_opts', like in this example.

@romikoops
Copy link
Contributor

romikoops commented Nov 19, 2017

@rchady if you used old version of howitzer and want to migrate fully on new one, please follow migration procedure described on wiki https://github.com/strongqa/howitzer/wiki/Migration-to-new-version
Howitzer, like Ruby on Rails consists from 2 parts: library and generated code. With first one it is easy to support compatibility on maintainers side, but generated code is on users side and we can not upgrade it automatically. Also, having generated code allows users to customize it easily regarding a project needs. I will close the issue.

@rchady
Copy link
Author

rchady commented Nov 19, 2017

This is a brand new installation of howitzer and a brand new project. I was just kicking the tires to see how it works and ran in to the above issue. I assume I am doing something wrong, was hoping you could point me in the right direction to fix it.

@romikoops romikoops reopened this Nov 19, 2017
@romikoops
Copy link
Contributor

@rchady you are right, looks like we have not updated the code in generators here https://github.com/strongqa/howitzer/blob/master/generators/rspec/templates/rspec.rake
@Lec1k Please fix

alexey-voronenko added a commit that referenced this issue Nov 20, 2017
* rspec and cucumber tasks updated #246

* Changelog

* issue linked to the bugfix
@alexey-voronenko
Copy link
Contributor

Fix in master baf0b3d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants