diff options
author | Azul <azul@leap.se> | 2014-02-08 11:13:10 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-10 14:26:30 +0100 |
commit | 67f17e65b9e9e8ad2991b9c4002dba5203baa77f (patch) | |
tree | 136f644eac462e583ca4bf1c957414f12d7c5035 /core/test/support/rack_test.rb | |
parent | 88f8128d568daaaa122d55ac7e546a81ae60964a (diff) |
refactor tests to ease the testing of token only auth
Diffstat (limited to 'core/test/support/rack_test.rb')
-rw-r--r-- | core/test/support/rack_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/test/support/rack_test.rb b/core/test/support/rack_test.rb new file mode 100644 index 0000000..0476cf7 --- /dev/null +++ b/core/test/support/rack_test.rb @@ -0,0 +1,13 @@ +class RackTest < ActiveSupport::TestCase + include Rack::Test::Methods + include Warden::Test::Helpers + include LeapWebCore::AssertResponses + + CONFIG_RU = (Rails.root + 'config.ru').to_s + OUTER_APP = Rack::Builder.parse_file(CONFIG_RU).first + + def app + OUTER_APP + end + +end |