Added new tests to officing section to ensure that multiple sessions (different users) can be initialized at the same time without crashing.
9 lines
142 B
Ruby
9 lines
142 B
Ruby
def in_browser(name)
|
|
old_session = Capybara.session_name
|
|
|
|
Capybara.session_name = name
|
|
yield
|
|
|
|
Capybara.session_name = old_session
|
|
end
|