Updating rspec from 3.0.0 to 3.1

25 views
Skip to first unread message

Mohit Gupta

unread,
Feb 3, 2016, 8:24:53 PM2/3/16
to rspec
Hi All

Need Urgent help regarding updating rspec version from 3.0.0 to 3.1. 

I have updated the version in gemfile, and I did bundle update rspec and then verified it using bundle again. After that when I specify a particular spec, that spec is not executed but other random spec is executed. 
Please let me know what am I doing wrong or am I missing any step?

Thanks


Jon Rowe

unread,
Feb 3, 2016, 8:33:53 PM2/3/16
to rs...@googlegroups.com
How are you specifying a particular spec? In anycase I recommend upgraded all the way to 3.4, theres been no breaking changes (due to semantic versioning) and a whole heap of bug fixes. The latest version also allows you to specify examples via an ID format which is always specific without relying on line numbers.

Jon Rowe
---------------------------

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/3c2b190e-ab2b-4563-9bb8-b3c5bd071538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohit Gupta

unread,
Feb 3, 2016, 9:07:55 PM2/3/16
to rspec
I am specifying the spec like: 

APP_HOST=http://www.example.com bundle exec rspec path/spec_name.rb


Also when updating rspec version do I need to update ruby version or any dependency ?

Jon Rowe

unread,
Feb 4, 2016, 3:38:03 AM2/4/16
to rs...@googlegroups.com
That command would only ever run one file, but that may be any number of specs within that file… Without a specific example it’s hard to help you further. 

You don’t need to update ruby to upgrade rspec and rspec has very few external dependencies.

Jon Rowe
---------------------------

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.

Mohit Gupta

unread,
Feb 4, 2016, 1:54:33 PM2/4/16
to rspec
Yes, I am trying to run a single spec. But the problem is instead of running that single spec it picks up some random spec when I update the rspec version.


On Wednesday, February 3, 2016 at 5:24:53 PM UTC-8, Mohit Gupta wrote:

Myron Marston

unread,
Feb 4, 2016, 1:57:17 PM2/4/16
to rs...@googlegroups.com
No one has reported a bug like that before.  Nothing comes to mind that could be the cause, either.  Can you provide an executable example of the bug?  Without that there's not much we can do because we can't guess what's different about your test suite that causes the problem.

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.

Jon Rowe

unread,
Feb 4, 2016, 5:03:55 PM2/4/16
to rs...@googlegroups.com
The command you’re saying you are using would never have run just one spec, so can you provide the command your actually using? Otherwise specify the spec like this:

APP_HOST='http://www.example.com' bundle exec rspec path/spec_name.rb:line_number

Jon Rowe
---------------------------

Reply all
Reply to author
Forward
0 new messages