Comments (3)
Is this solved? It seems that it would be really useful with rspec.
from json_expressions.
I am not longer on the project which was using it, so I don't know:( Sorry
from json_expressions.
If you're using the expect(response.body).to match_json_expression(pattern)
syntax, it seems that pattern
is modified with the captures. Ie, you can access it using pattern.captures[:user_id]
.
from json_expressions.
Related Issues (20)
- matching floats to a given precision HOT 1
- Make schema matching easier HOT 3
- Define JSON pattern outside of tests? HOT 2
- Cucumber support HOT 2
- Conflicts with 'rails/application' and 'rspec/rails' HOT 4
- Support for arbitrary custom matchers HOT 3
- Rspec 3 Deprecation Warning HOT 1
- Custom Matcher's HOT 1
- [feature]: Using awesome_print for prettier JSON output on failure HOT 1
- Would I be able to use rspec method 'match_json_expression' inside a cucumber step definitions? HOT 2
- how to set certain keys as optional?
- Nested schema matching HOT 1
- Symbolic Values Seem to be Skipped HOT 2
- Add support for unified Integer class HOT 2
- Tests fail for Ruby 2+ HOT 1
- Circular load warning HOT 1
- stack level too deep HOT 1
- add .can_be_empty! for Arrays and Hashes
- Release 1.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json_expressions.