Steve Richert

Results 66 comments of Steve Richert
trafficstars

Hi @madzhuga! This conversation is specifically about building a new developer API for Interactor in which specific interactors can be skipped based on some arbitrary conditions. While `rails_workflow` looks cool,...

If `:allow_failure` is set to `true` for one of the organized interactors, I'm imagining that if that interactor fails, the organizer will recognize that failure and revert the context to...

I'm leery of the syntax because the `"*"` syntax is perfectly valid JSON. Plus this is possible using a different combination of matcher, although it might not be as _short_....

If you don't care about the values, you could achieve the same result using the `have_json_path` matcher. Or if you're using pure RSpec, you can use RSpec's built-in `include` matcher...

Please reference https://github.com/collectiveidea/json_spec/pull/25 to see what I'd like to see in order to pull this in. Thank you!

@AlexanderPavlenko Thanks for all of your work! There are just a couple things I would change and I'll comment on those individually in the diff. Thank you again!

JSON strings must be quoted with double quotes, not single. That may be your issue.

Try running it with this: ``` ruby def parse_json(json, path = nil) puts "GOT JSON: #{json}" puts "GOT PATH: #{path}" ruby = MultiJson.decode("[#{json}]").first puts "GOT RUBY: #{ruby}" v = value_at_json_path(ruby,...