spec/fixture_loader_spec.rb in alephant-preview-0.3.6 vs spec/fixture_loader_spec.rb in alephant-preview-0.3.7
- old
+ new
@@ -36,13 +36,17 @@
expect(subject.get(uri).body).to eq fixture_data[index]
end
end
end
- context 'using incorrect amount of fixtures' do
+ context "using incorrect amount of fixtures" do
it "should raise an exception" do
(0..2).each { |index| subject.get(uri).body }
- expect{ subject.get(uri).body }.to raise_error
+ expect do
+ subject.get(uri).body
+ end.to raise_error(
+ RuntimeError, "There isn't a fixture matching the request call, please add one"
+ )
end
end
end
end
end