Skip to content

Commit

Permalink
Cleaning up unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gus committed May 1, 2012
1 parent 0ac61bf commit 6c064b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/riot/reporter/io.rb
Expand Up @@ -64,7 +64,7 @@ def format_error(e)
# @param [Array] backtrace an exception's backtrace
# @param [lambda] &line_handler called each time a good line is found
def filter_backtrace(backtrace, &line_handler)
cleansed, bad = [], true
bad = true

# goal is to filter all the riot stuff/rake before the first non riot thing
backtrace.reverse_each do |bt|
Expand Down
2 changes: 1 addition & 1 deletion test/core/assertion_macros/raises_kind_of_test.rb
Expand Up @@ -23,7 +23,7 @@ class SubWhoops < Whoops; end

assertion_test_fails("when nothing was raised",
"expected to raise kind of Whoops, but raised nothing") do
assertion = Riot::Assertion.new("foo") { "barf" }.raises_kind_of(Whoops)
Riot::Assertion.new("foo") { "barf" }.raises_kind_of(Whoops)
end

assertion_test_passes("when provided message equals expected message",
Expand Down
2 changes: 1 addition & 1 deletion test/core/assertion_macros/raises_test.rb
Expand Up @@ -13,7 +13,7 @@ class Whoops < Exception; end
end

assertion_test_fails("when nothing was raised", "expected to raise Whoops, but raised nothing") do
assertion = Riot::Assertion.new("foo") { "barf" }.raises(Whoops)
Riot::Assertion.new("foo") { "barf" }.raises(Whoops)
end

assertion_test_passes("when provided message equals expected message", %Q{raises Whoops with message "Mom"}) do
Expand Down

0 comments on commit 6c064b0

Please sign in to comment.