From f97eed544ca64255999859e97c1dbe7d5c70192f Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Tue, 17 Sep 2013 22:20:41 +0200 Subject: [PATCH] Change exception type in tests --- test/test_tags.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_tags.rb b/test/test_tags.rb index 5e25c1db..c58c9c7e 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -373,7 +373,7 @@ CONTENT end context "with invalid parameter syntax" do - should "throw a SyntaxError" do + should "throw a ArgumentError" do content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) end @@ -392,7 +392,7 @@ title: Invalid parameter syntax {% include params.html params="value %} CONTENT - assert_raise SyntaxError, 'Did not raise exception on invalid "include" syntax' do + assert_raise ArgumentError, 'Did not raise exception on invalid "include" syntax' do create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) end end