spec/inline_spec.rb in keynote-0.3.1 vs spec/inline_spec.rb in keynote-1.0.0

- old
+ new

@@ -112,11 +112,17 @@ presenter.error_handling rescue => e end e.must_be_instance_of ActionView::Template::Error - e.original_exception.must_be_instance_of RuntimeError - e.original_exception.message.must_equal "UH OH" + + if e.respond_to?(:original_exception) + e.original_exception.must_be_instance_of RuntimeError + e.original_exception.message.must_equal "UH OH" + else + e.cause.must_be_instance_of RuntimeError + e.cause.message.must_equal "UH OH" + end end it "should remove leading indentation" do presenter.fix_indentation.must_equal \ "<div class=\"indented_slightly\">2 times 3 times 4 times </div>"