Class: ShowMeTheCookies::RackTest
- Inherits:
-
Object
- Object
- ShowMeTheCookies::RackTest
- Defined in:
- lib/show_me_the_cookies/rack_test.rb
Instance Method Summary collapse
- #delete_cookie(cookie_name) ⇒ Object
-
#initialize(rack_test_driver) ⇒ RackTest
constructor
A new instance of RackTest.
- #show_me_the_cookies ⇒ Object
Constructor Details
#initialize(rack_test_driver) ⇒ RackTest
Returns a new instance of RackTest.
2 3 4 |
# File 'lib/show_me_the_cookies/rack_test.rb', line 2 def initialize(rack_test_driver) @rack_test_driver = rack_test_driver end |
Instance Method Details
#delete_cookie(cookie_name) ⇒ Object
10 11 12 13 14 |
# File 'lib/show_me_the_cookies/rack_test.rb', line 10 def () .instance_variable_get(:@cookies).reject! do || .name.downcase == end end |
#show_me_the_cookies ⇒ Object
6 7 8 |
# File 'lib/show_me_the_cookies/rack_test.rb', line 6 def .instance_variable_get(:@cookies).map(&:inspect).join("\n") end |