Sha256: 9a308529312ba3569641a2ff9e7cf7a812bc4a63c2ed102f0706837b88584dcb
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
Given /^a missing impartial controller named "([^"]*)"$/ do |name| @missing = name end When /^I try to render the impartial$/ do # noop end Then /^I should get a class not found exception$/ do lambda { Impartial.render(@missing) }.should raise_error Impartial::Exceptions::ClassNotFound end Given /^it's missing it's template$/ do # noop end Then /^I should get a template missing exception$/ do lambda { Impartial.render(@missing) }.should raise_error Impartial::Exceptions::TemplateMissing end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
impartial-0.0.1 | features/steps/error_steps.rb |