我有一个简单的测试来获取一个Facebook对象。我正在使用Curl来处理请求。 it "gets an object from Facebook" do
VCR.use_cassette('facebook') do
url = "https://graph.facebook.com/<ID>?access_token=#{@access_token}{query_str
与可变值工作,我有这样的 ---
http_interactions:
- request:
method: post
uri: https://control.msg91.com/api/sendotp.php?message=Your%20otp%20is%200805&mobile=919446733017&otp=0805&sender=TESTER
bo
VCR测试gem提供了一个名为use_vcr_cassette的宏,该宏具有基于示例名称的infer the cassette name的易用约定。由于use_vcr_cassette宏在最新版本的VCR中被弃用,以支持rspec元数据(即:vcr),是否还有任何方法可以自动拾取磁带名称,而无需在每个规格中指定它? (顺便说一句,我用这个用Rails应用程序。)
根据我在读什么在这里:https://relishapp.com/vcr/vcr/v/1-11-3/docs/configuration/filter-sensitive-data, When the interactions are replayed, the sensitive text will replace the substitution string so that the inte
在请求example.com的所有规范中,我希望忽略URI中与请求匹配器相关的结尾ID。像这样的东西。 VCR.configure do |c|
# omitted
c.register_request_matcher :uri_ignoring_trailing_id do |request_1, request_2|
# omitted
end