Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no good reason for making 'name' an instance variable

  • Loading branch information...
commit a5c908ac3f3d55bf6ed25695831f9e5affbde0c4 1 parent cf42c56
@erictheise erictheise authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/test_convertible.rb
View
12 test/test_convertible.rb
@@ -20,24 +20,24 @@ class TestConvertible < Test::Unit::TestCase
end
should "not parse if there is syntax error in front-matter" do
- @name = 'broken_front_matter2.erb'
+ name = 'broken_front_matter2.erb'
out = capture_stdout do
- ret = @convertible.read_yaml(@base, @name)
+ ret = @convertible.read_yaml(@base, name)
assert_equal({}, ret)
end
assert_match(/YAML Exception|syntax error/, out)
- assert_match(/#{File.join(@base, @name)}/, out)
+ assert_match(/#{File.join(@base, name)}/, out)
end
if RUBY_VERSION >= '1.9.2'
should "not parse if there is encoding error in file" do
- @name = 'broken_front_matter3.erb'
+ name = 'broken_front_matter3.erb'
out = capture_stdout do
- ret = @convertible.read_yaml(@base, @name)
+ ret = @convertible.read_yaml(@base, name)
assert_equal({}, ret)
end
assert_match(/invalid byte sequence in UTF-8/, out)
- assert_match(/#{File.join(@base, @name)}/, out)
+ assert_match(/#{File.join(@base, name)}/, out)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.