@Myron: I pushed to remote a branch that has RSpec features implemented. When running all the specs, tests failed (2). When running the same but separately, they pass.Group: http://groups.google.com/group/rspec/topics
- How to initialize a custom matcher in rspec 3 [1 Update]
- expect(assigns(:clients)).to match_array(clients) fails or passes, very brittle behaviour [2 Updates]
Kris Leech <kris....@gmail.com> Jul 11 04:13PM -0700
I'm writing a custom matcher to allow testing of the exit status of code.
I've written the matcher as an object using the bits of information I could
find.
I'm using `config.include(Rspec::ExitMatchers)` to include a module which
has one method which creates an instance of my matcher, however this method
receives the expected value, not the block passed to `expect`, so how do I
create an instance of my matcher since the initializer needs the block
(actual), not the expected value which should be passed to `matches?`...
https://github.com/krisleech/rspec-exit_matchers/blob/master/lib/rspec/exit_matchers.rb#L38
https://github.com/krisleech/rspec-exit_matchers/blob/master/spec/rspec/exit_matchers_spec.rb#L3
Any helps/pointers would be great. Thanks, Kris.Myron Marston <myron....@gmail.com> Jul 14 11:05AM -0700
On Saturday, July 12, 2014 1:15:42 PM UTC-7, Javix wrote:
> DatabaseCleaner truncation feature.
> And my features/ClientsControllerPage
> WTF, it fails again...
If you can put together a reproducible example, open an issue and we'll
take a look. It's hard (nearly impossible) for us to debug remotely based
on the limited information you've given us.
MyronSerguei Cambour <s.ca...@gmail.com> Jul 14 08:22PM +0200
> WTF, it fails again...
> If you can put together a reproducible example, open an issue and we'll take a look. It's hard (nearly impossible) for us to debug remotely based on the limited information you've given us.
> Myron
Tank you Myron.
Just for history, I was going to take a try with RSpec features (never used them before), instead of Cucumber's ones, that’s why I was a little bit stuck with that. So I just deleted RSpec ‘features’ folder with all the specs inside and came back to Cucumber to be able to continue.
If I manage to check out a branch from the point where I had features available on my project, I’ll create a gist or even a branch and come back here with more details.
Thank you again for your fed back.