Refactor API CORS specs

This commit is contained in:
Thibault Jouan
2015-05-01 15:41:35 +00:00
parent c1477a2e89
commit c1393b8f8f
2 changed files with 17 additions and 22 deletions

View File

@@ -1,4 +1,8 @@
module AcceptanceHelpers
def options path, options = nil, headers = nil
@integration_session.send :process, :options, path, options, headers
end
def sign_in
create :user do |o|
visit new_session_path