Skip to content

Instantly share code, notes, and snippets.

@nfedyashev
Created September 9, 2018 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfedyashev/ef8ca83e30a4b9ae4993e8a7f50e7b74 to your computer and use it in GitHub Desktop.
Save nfedyashev/ef8ca83e30a4b9ae4993e8a7f50e7b74 to your computer and use it in GitHub Desktop.
➜ rails git:(master) ✗ ag flash'\[' **/*_test.rb
actionpack/test/controller/action_pack_assertions_test.rb
46: flash["hello"] = "my name is inigo montoya..."
310: assert_predicate flash["hello"], :present?
actionpack/test/controller/flash_test.rb
9: flash["that"] = "hello"
24: @flashy = flash["that"]
30: @flashy = flash["that"]
36: @flashy = flash["that"]
48: flash["that"] = "hello"
49: @flashy_that = flash["that"]
51: @flashy_that_reset = flash["that"]
52: flash["this"] = "good-bye"
53: @flashy_this = flash["this"]
70: flash["foo"] = "bar"
252: flash["that"] = "hello"
262: render inline: "flash: #{flash["that"]}"
266: flash[:bar] = "for great justice"
282: assert_equal "hello", @request.flash["that"]
actionpack/test/controller/force_ssl_test.rb
49: render plain: flash[:message]
53: render plain: flash[:alert]
57: render plain: flash[:notice]
89: flash["that"] = "hello"
95: @flashy = flash["that"]
actionpack/test/controller/test_case_test.rb
17: flash["test"] = ">#{flash["test"]}<"
27: flash.now["test_now"] = ">#{flash["test_now"]}<"
277: assert_equal "><", flash["test"]
284: assert_equal ">value<", flash["test"]
291: assert_equal ">value_now<", flash["test_now"]
507: assert_equal "created", flash[:notice]
actionpack/test/dispatch/routing_test.rb
4971: render plain: (flash[:foo] || "foo")
4977: get "/foo", to: redirect { |params, req| req.flash[:foo] = "bar"; "/bar" }
actionview/test/template/test_case_test.rb
77: test "delegates notice to request.flash[:notice]" do
83: test "delegates alert to request.flash[:alert]" do
activesupport/test/ordered_hash_test.rb
248: assert_kind_of ActiveSupport::OrderedHash, flash[:a]
railties/test/application/assets_test.rb
376: flash[:cool_story] = true
railties/test/application/middleware/session_test.rb
43: flash[:notice] = "notice"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment