Sha256: ada02cefadd8e6d3f0a343360fc9de466be6586df080d1df9376c9b2296e3058
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
require 'rspec' shared_examples_for 'success scenario' do it 'has status code of 200' do expect(described_class.status_code).to eq 200 end context 'has expected mandatory elements' do described_class.mandatory_elements.each do |mandatory_element| it mandatory_element do expect(described_class).to contain_key mandatory_element end end end context 'has expected xpath values' do described_class.mandatory_xpath_values.each do |xpath_pair| it { is_expected.to have_xpath_value xpath_pair } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soaspec-0.0.9 | lib/soaspec/shared_examples.rb |