Skip to content

Commit

Permalink
Fix an "undefined instance variable" warning in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk committed Nov 11, 2011
1 parent 6ba3b99 commit 649484a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helper.rb
Expand Up @@ -47,6 +47,7 @@ def self.should_log_at_level(level)

def self.should_raise_exception(klass)
should "raise an #{klass} exception" do
@exception = nil if !defined?(@exception)
assert @exception.is_a?(klass)
end
end
Expand Down

0 comments on commit 649484a

Please sign in to comment.