Skip to content

Commit

Permalink
Flash now uses @discard instead of @used.
Browse files Browse the repository at this point in the history
  • Loading branch information
spectator committed Feb 28, 2013
1 parent bcd5468 commit f0f6422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/flash_responder_test.rb
Expand Up @@ -181,13 +181,13 @@ def test_never_set_flash_now

# If we have flash.now, it's always marked as used.
def assert_flash_now(k)
assert flash.instance_variable_get(:@used).to_a.include?(k.to_sym),
assert flash.instance_variable_get(:@discard).to_a.include?(k.to_sym),
"Expected #{k} to be in flash.now, but it's not."
end

def assert_not_flash_now(k)
assert flash[k], "Expected #{k} to be set"
assert !flash.instance_variable_get(:@used).include?(k.to_sym),
assert !flash.instance_variable_get(:@discard).include?(k.to_sym),
"Expected #{k} to not be in flash.now, but it is."
end
end
Expand Down

0 comments on commit f0f6422

Please sign in to comment.