lib/soaspec/shared_examples.rb in soaspec-0.0.9 vs lib/soaspec/shared_examples.rb in soaspec-0.0.10

- old
+ new

@@ -9,11 +9,11 @@ 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 } + 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 \ No newline at end of file