Hello my friends, happy hollidays!

I'm referring to this issue: 
https://github.com/rspec/rspec-expectations/issues/1336 (I wish I had 
waited one more ticket so I'd grab #1337)

Basically, I'm trying to implement a matcher that can be chained with 
others after an `expect {}` , as in the following snippet.

```ruby
expect { run({duration: "2.24"}) }
      .to pass
      .and change { "yo" }.by(1)
```

When running this, I get this error:
NoMethodError:
       undefined method `success?' for #<Proc:0x000055697246eea8 
/home/nick/projects/rspec-trailblazer/spec/expectation_spec.rb:46>

My matcher, when used in a chain, doesn't receive the `actual` result 
object (specific to `run` and our library) but a Proc instance. How would I 
write a matcher that supports the block syntax? 

Cheers,
Nick

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/d165547b-d086-4227-a8d7-9a2e24779a49n%40googlegroups.com.

Reply via email to