Change exception type in tests
This commit is contained in:
parent
ec85c49de3
commit
f97eed544c
|
@ -373,7 +373,7 @@ CONTENT
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with invalid parameter syntax" do
|
context "with invalid parameter syntax" do
|
||||||
should "throw a SyntaxError" do
|
should "throw a ArgumentError" do
|
||||||
content = <<CONTENT
|
content = <<CONTENT
|
||||||
---
|
---
|
||||||
title: Invalid parameter syntax
|
title: Invalid parameter syntax
|
||||||
|
@ -381,7 +381,7 @@ title: Invalid parameter syntax
|
||||||
|
|
||||||
{% include params.html param s="value" %}
|
{% include params.html param s="value" %}
|
||||||
CONTENT
|
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})
|
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -392,7 +392,7 @@ title: Invalid parameter syntax
|
||||||
|
|
||||||
{% include params.html params="value %}
|
{% include params.html params="value %}
|
||||||
CONTENT
|
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})
|
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue