spec/spec/rails/example/controller_isolation_spec.rb in dchelimsky-rspec-rails-1.1.11.4 vs spec/spec/rails/example/controller_isolation_spec.rb in dchelimsky-rspec-rails-1.1.11.5
- old
+ new
@@ -32,15 +32,13 @@
end
it "should choke if the template doesn't exist" do
error = defined?(ActionController::MissingTemplate) ? ActionController::MissingTemplate : ActionView::MissingTemplate
lambda { get 'some_action' }.should raise_error(error)
- response.should_not be_success
end
it "should choke if the template has errors" do
lambda { get 'action_with_errors_in_template' }.should raise_error(ActionView::TemplateError)
- response.should_not be_success
end
describe "nested" do
it "should render a template" do
get 'action_with_template'