Comments (5)
I loved VCR when writing Ruby tests, and I've stumbled upon this project. I'd love to help out if I can. I've used an ordered dictionary implementation or two before — by ordered dictionary, do you mean replacing this ivar here?
https://github.com/dstnbrkr/VCRURLConnection/blob/master/VCRURLConnection/VCRCassette_Private.h#L28
#import "VCRCassette.h"
@interface VCRCassette ()
@property (nonatomic, retain) NSMutableDictionary *responseDictionary;
@end
from vcrurlconnection.
Hi @kreeger, that would be great! This is the dictionary that should probably be ordered:
https://github.com/dstnbrkr/VCRURLConnection/blob/master/VCRURLConnection/VCRRecording.m#L87
if that dictionary was ordered, then the keys in the generated JSON would appear in consistent order. The dictionary here:
https://github.com/dstnbrkr/VCRURLConnection/blob/master/VCRURLConnection/VCRCassette_Private.h#L28
is just the url / response map, which doesn't need ordering.
from vcrurlconnection.
Question — I'm writing a test case to cover this new functionality (both'll be included in my PR), but there are three tests that fail on master before I even apply my changes, on both the OS X and iOS test targets. Should I worry about those? Fix those?
from vcrurlconnection.
I've added my own passing test for the JSON key ordering bit — opening a pull request now.
from vcrurlconnection.
I see what you mean re: those tests, should be fixed in master now. Thanks!
from vcrurlconnection.
Related Issues (15)
- Should use pod dependency for NSData+Base64 HOT 1
- Fix inconsistency in API: read/write to URL
- JSON actually isn't pretty printed HOT 2
- Request to fix three Xcode warnings HOT 3
- Request to provide VCR class with 'isRecording/setRecording:' class-level property HOT 4
- Don't see expected error HOT 1
- VCRURLConnection doesn’t consider request headers and body HOT 1
- Match outgoing requests to existing recordings with a (slightly) different URI?
- Improve Tutorial and Setup Instructions
- New release? HOT 1
- Https session recording
- Still Active? HOT 1
- VCRURLConnection can't handle testing multiple requests to the same endpoint HOT 2
- [VCR stop] in the setup instructions HOT 1
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 vcrurlconnection.