diff options
author | Azul <azul@riseup.net> | 2017-03-20 11:16:21 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-03-20 11:16:21 +0100 |
commit | a741152e33f6a681113818418ad0f898f2d04697 (patch) | |
tree | 897a279db2be8dcebe77f45b84b8d9c500766a7d /test/integration/key_discovery_test.rb | |
parent | 15de288c3ca9bacc3d45675878ee7b8a2d9fc935 (diff) |
fix: 404 for missing pages template - fixes #9
Diffstat (limited to 'test/integration/key_discovery_test.rb')
-rw-r--r-- | test/integration/key_discovery_test.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/integration/key_discovery_test.rb b/test/integration/key_discovery_test.rb deleted file mode 100644 index 2a38a78..0000000 --- a/test/integration/key_discovery_test.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'test_helper' - -# This is not really a browser test - key discovery is used from bitmask. -# However we need to make sure to test the full rack stack to replicate -# exception handling. -class KeyDiscoveryTest < RackStackTest - include Capybara::DSL - - setup do - # make sure we test the whole stack... - Capybara.current_driver = Capybara.javascript_driver - end - - teardown do - # Revert Capybara.current_driver to Capybara.default_driver - Capybara.use_default_driver - end - - def test_404_on_non_existing_user - visit '/key/asjkholifweatg' - assert_equal 404, status_code - end -end |