Sha256: a63e0f9ce017f3f9f7a2beffd5ede11041367636e208aa76acfe405a46400fb5
Contents?: true
Size: 521 Bytes
Versions: 22
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' describe 'json extract' do let(:doc) do test do extract json: '.test.path', name: 'my_json' end.to_doc end let(:fragment) { doc.search("//com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor").first } it 'should match on json path' do expect(fragment.search(".//stringProp[@name='JSONPATH']").text).to eq '.test.path' end it 'should match on json var' do expect(fragment.search(".//stringProp[@name='VAR']").text).to eq 'my_json' end end
Version data entries
22 entries across 22 versions & 1 rubygems