Sha256: 0d11a04cfc0de5e5fe188af6f0a1dcf03793721a3a1cf0e6fdf0dd1dad0368f7
Contents?: true
Size: 599 Bytes
Versions: 10
Compression:
Stored size: 599 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 described_class.mandatory_xpath_values.each do |xpath, value| it "has xpath '#{xpath}' equal to '#{value}'" do expect(described_class).to have_xpath_value(xpath => value) end end end
Version data entries
10 entries across 10 versions & 1 rubygems