Sha256: 646b81df93f29db872620d9615966e40db79ea2d9408608646f1eea77c2a13c9
Contents?: true
Size: 991 Bytes
Versions: 22
Compression:
Stored size: 991 Bytes
Contents
require 'spec_helper' describe 'transaction controller' do let(:doc) do test do threads do transaction name: 'TC_01', parent: false, include_timers: true transaction name: 'TC_02', parent: true, include_timers: false end end.to_doc end let(:fragment) { doc.search("//TransactionController") } it 'should match on parent when false' do expect(fragment.first.search(".//boolProp[@name='TransactionController.parent']").text).to eq 'false' end it 'should match on includeTimers when true' do expect(fragment.first.search(".//boolProp[@name='TransactionController.includeTimers']").text).to eq 'true' end it 'should match on parent when true' do expect(fragment.last.search(".//boolProp[@name='TransactionController.parent']").text).to eq 'true' end it 'should match on includeTimers when false' do expect(fragment.last.search(".//boolProp[@name='TransactionController.includeTimers']").text).to eq 'false' end end
Version data entries
22 entries across 22 versions & 1 rubygems