extracted method

This commit is contained in:
Hauke Klement
2015-02-09 16:24:33 +01:00
parent 342c3a153c
commit 232c6b398f
5 changed files with 14 additions and 10 deletions

View File

@ -27,6 +27,10 @@ def expect_flash_message(type, message)
end
end
def expect_json
expect_content_type('application/json')
end
def expect_redirect(path = nil)
if path
it "redirects to #{path}" do