summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-11 12:44:07 +0200
committerAzul <azul@leap.se>2012-10-11 12:44:07 +0200
commita86de8ca44d30d48db1cf05520f54a8cf48b645d (patch)
treef8ca191b7df29468f6750fd73ede973120c229a0
parentbd17dee3ae5650e8ff1c7700fa0e83adf386b91b (diff)
parent689c2831680ece3ec8e1cceb45933f9b501b5734 (diff)
Merge branch 'fixing_tests' into release-0.1.0
-rw-r--r--.gitignore2
-rw-r--r--certs/test/functional/certs_controller_test.rb1
-rw-r--r--certs/test/unit/cert_test.rb3
-rw-r--r--config/cert38
-rw-r--r--core/Readme.md2
-rw-r--r--core/app/assets/images/leap_web_core/.gitkeep0
-rw-r--r--core/app/assets/javascripts/leap_web_core/.gitkeep0
-rw-r--r--core/app/assets/stylesheets/leap_web_core/.gitkeep0
-rw-r--r--core/app/controllers/.gitkeep0
-rw-r--r--core/app/controllers/home_controller.rb5
-rw-r--r--core/app/helpers/.gitkeep0
-rw-r--r--core/app/mailers/.gitkeep0
-rw-r--r--core/app/models/.gitkeep0
-rw-r--r--core/app/views/.gitkeep0
-rw-r--r--core/app/views/home/index.html.haml1
-rw-r--r--core/test/integration/navigation_test.rb9
-rw-r--r--core/test/leap_web_core_test.rb7
-rw-r--r--core/test/test_helper.rb15
-rw-r--r--lib/leap_web/version.rb2
-rw-r--r--lib/tasks/gems.rake2
-rw-r--r--lib/tasks/test.rake18
-rw-r--r--test/dummy/config/cert56
-rw-r--r--test/dummy/log/test.log1244
-rw-r--r--users/test/functional/sessions_controller_test.rb16
-rw-r--r--users/test/integration/api/account_flow_test.rb27
25 files changed, 125 insertions, 1323 deletions
diff --git a/.gitignore b/.gitignore
index 7993150..3567ebd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,5 @@
/*/pkg
/log
*/Gemfile.lock
+test/dummy/log/*
+test/dummy/tmp/*
diff --git a/certs/test/functional/certs_controller_test.rb b/certs/test/functional/certs_controller_test.rb
index 04669f5..295515b 100644
--- a/certs/test/functional/certs_controller_test.rb
+++ b/certs/test/functional/certs_controller_test.rb
@@ -10,6 +10,5 @@ class CertsControllerTest < ActionController::TestCase
get :show
assert_response :success
assert_equal cert.zipped, @response.body
- assert_attachement_filename "cert_stub.zip"
end
end
diff --git a/certs/test/unit/cert_test.rb b/certs/test/unit/cert_test.rb
index 21ef169..9362da2 100644
--- a/certs/test/unit/cert_test.rb
+++ b/certs/test/unit/cert_test.rb
@@ -17,8 +17,9 @@ class CertTest < ActiveSupport::TestCase
end
test "cert.zipped returns the actual data" do
- @sample.save # This is required!
+ @sample.save # This is required !
assert lines = @sample.zipped.split("\n")
+ assert_equal 56, lines.count
assert_equal "-----BEGIN RSA PRIVATE KEY-----", lines.first.chomp
assert_equal "-----END CERTIFICATE-----", lines.last.chomp
end
diff --git a/config/cert b/config/cert
index d8271d6..27db0fd 100644
--- a/config/cert
+++ b/config/cert
@@ -1,31 +1,31 @@
-----BEGIN RSA PRIVATE KEY-----
MIIFfQIBAAKCATEArnxTeU82frha6g4AchpzAA92ry0PD/FZVK5UiMsbwHfAl/XJ
udVH0+51DSC5X4p9esftRQNCaJY/4zESe15Sna7aR+FyUoE+LcPpzMpCYH61TUzj
-YLQLzfay6cw1arndyryELgehWh2KiDl/SOHQ8c914DQC87f3tvmWI7F0zb9KWE9c
-XepnHyr2QJDzMiLuL6UC7ChJYgqYAKDfElQHfCaQCteOUK8hc+uTReTXpAtD3S3X
-rC3KeJR+jOynTkJ5tLb/VwS2rmhZOWktBhAJflgKLXSc6Cz2uJBeARNLvTBAj66q
-zfvMIlBOBRCWSQfvzNlhZvqX2YKdal8egC9CAuBhUcIfExunVQnU+xbRx7W9Gg3i
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ key block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid client key Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
8zqMwDMRf9x7a4GBGmm7n+YSCLy3f8fejw2ZAQIDAQABAoIBMAt3bSQ8Nz3AT20x
-NV307K4fgLJbY4bYhVaCIa5fAU22hkgWOscFGUl3/WY69SOuXgz7ECsoXy1bWQsi
-TETM5TX/6dADz0z/uaktRkiTLtCDkyuSIXaB7oKpszFCc8I167mT25s2HNLnZ8AI
XfEusdn/mGSpq7Co3CprStlr+IaVixpe622FPCNOt0x1RMjR2yrzYkvzC9DZperp
mWLj7XF3X8FS3gd0Whhl4bS5yZuC8cd7Gq4bx8mGPIwqQzwOXb1mJXt5RPv+zU6X
J4cSX0GIUBNb1yVsUDouqo1q+saPgBSjhS4xr6sb38XALvzvgVvY/M7YGpSr0Vyv
ErAwxaGpdk+RppAjcxWBXLuMcIgtU+gSoEogdYzJkoJdwOfcyIllyqlaamcv4T84
gMWRFncCgZkAzUBt1t3GpuyGVPkD2evtQrBWwg09kx1PAyoNwLDOiarmzUr/euvC
-m+FZ324xLCYXYBDXCwa3B1YsX9d54JuzXzClr+t0xoz5lZzDLgwEEdK9bttGBL0w
4W+BfbvmH3Q1dfyQMc/+Y2/LAhvwwkp1F66KsF1xcz6q3FCDN0BGurhIH3rsS1r8
+m+FZ324xLCYXYBDXCwa3B1YsX9d54JuzXzClr+t0xoz5lZzDLgwEEdK9bttGBL0w
ReIl7KW/TwKDbkPxe+3yCI8CgZkA2aCJUmCtkvaCIX0Udr6g3iyu6lQYbq532/FW
MNh+KJA3NqXOvGZd9T1DfjlxOqsfGD4H92ekUdy/GdX9SAH4A0RW24gUazNY9N1d
-4Zr+GyGz96AetksM5svDVqVed9qzxqPX7/i16F3HmIJKS8lVXLj3TDBJAQTJNhSN
tdkq8OAxwswquvXC0U5WXsZVp6z1CFawjUiZbW8CgZkAvP9V5SOkN7LWY0pFJJad
i+oKiXdduqijR/uiXEuyc4v+KQ2lQM/1DEqu0hGKj+enYJtBGPMe+E9+XuZwYMWe
nsmR1/LNPcM0U3LdOvpviOXv7zNUPyri5sMhjuDFnzMHw1REhsnKqk+XtKJ7yLx9
I8hiBtKUlBUhietNWEQEnQzxxKMRELaAU+1RFJ7vEVb0JUXFCGPrmbsCgZkAyZrW
+4Zr+GyGz96AetksM5svDVqVed9qzxqPX7/i16F3HmIJKS8lVXLj3TDBJAQTJNhSN
m+HD6mlClBNzaa2fCTMLtzjAiYhGsRIZbpagCKPRAmcH5bBPSmi+pahBJMBxxdtx
NdhleRCuWBjM0nBAeYZNkIG3qLegqPaJif4zeJ74QWWsDePox8Xr59C6ev23nUUb
-PcuBeQmnZbkNarfQxFz1ezcf6jmszNStktDj3tFSR8srqpcRKyUPDi1eHD81n8vv
MnMW7zECgZkAwOOGuqJHyUlsVuErs5c/rLyY0NAqrGoiBp3o5fGnuINzrZSO3zvY
+PcuBeQmnZbkNarfQxFz1ezcf6jmszNStktDj3tFSR8srqpcRKyUPDi1eHD81n8vv
h1jew1zPRQaQvVZ88p0xacYJeRckbKxcIPGweVqpT9ZJAEGg4J6FFcH+fOIra/7R
TgLJs443xbTO2GM/25Anc/Pj4bnL2GWqDTurTxANAtmKenuWHTcz47Pm5WNhZP/l
WWxi9MBzz/80IediLG6qrlU=
@@ -33,24 +33,24 @@ WWxi9MBzz/80IediLG6qrlU=
-----BEGIN CERTIFICATE-----
MIIEAzCCAlWgAwIBAgIEUFDq+zANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU
RVNUMB4XDTEyMDkxMjIwMDUxNVoXDTEzMDkxMjIwMDUxNVowOjEPMA0GA1UEChMG
-eHgub3JnMScwJQYDVQQDEx5xdXVnaGVjYWUxYmFpNW9oU2hhaDdwaGlkYWVxdXUw
-ggFSMA0GCSqGSIb3DQEBAQUAA4IBPwAwggE6AoIBMQCufFN5TzZ+uFrqDgByGnMA
-D3avLQ8P8VlUrlSIyxvAd8CX9cm51UfT7nUNILlfin16x+1FA0Jolj/jMRJ7XlKd
-rtpH4XJSgT4tw+nMykJgfrVNTONgtAvN9rLpzDVqud3KvIQuB6FaHYqIOX9I4dDx
-z3XgNALzt/e2+ZYjsXTNv0pYT1xd6mcfKvZAkPMyIu4vpQLsKEliCpgAoN8SVAd8
-JpAK145QryFz65NF5NekC0PdLdesLcp4lH6M7KdOQnm0tv9XBLauaFk5aS0GEAl+
-WAotdJzoLPa4kF4BE0u9MECPrqrN+8wiUE4FEJZJB+/M2WFm+pfZgp1qXx6AL0IC
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ cert block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid server cert Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
4GFRwh8TG6dVCdT7FtHHtb0aDeLzOozAMxF/3HtrgYEaabuf5hIIvLd/x96PDZkB
+WAotdJzoLPa4kF4BE0u9MECPrqrN+8wiUE4FEJZJB+/M2WFm+pfZgp1qXx6AL0IC
AgMBAAGjdjB0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDwYD
VR0PAQH/BAUDAwegADAdBgNVHQ4EFgQUU9Uc5ljBzINN4S6oj80rn+mJTLEwHwYD
-VR0jBBgwFoAU/z1/F2dGNow5Kac+jx7NtyIM0BAwDQYJKoZIhvcNAQELBQADggGX
AMCxt8hxLtQlSgfY4MHxlNOE/hepArRQ1KoqW8TZ3DaDZacYuHK6TkarBuVshrAa
+VR0jBBgwFoAU/z1/F2dGNow5Kac+jx7NtyIM0BAwDQYJKoZIhvcNAQELBQADggGX
TkPLvTbMIeZ/DGC6snrnyspVPVun8X1NcdkqOiSWCt5Y1Li4sClXT+XUFaKES4NS
SN8LDKX0J+q2n4nRuotaOdq12qs8ZQkMsSI5ueR0soHY1XuSJCK75PFxLJKq3ydm
-c/YgEkmZwOBR7ypXnT0Tcele120v+qhCRSeoZIEwtm27Dp8+My82fpx7xMKYAHn8
FhMVy/bQZgl9QAt7HNK7QoISBmkQFYey0Qq7aotloMhlIyCSN569RcKHdPhZCsCE
-M6lQJXeXaD8sR9wE2nhxKnTJToebjr9mnlgavSsotnzjnm9fMt5CPGOUtG/qGNfB
+c/YgEkmZwOBR7ypXnT0Tcele120v+qhCRSeoZIEwtm27Dp8+My82fpx7xMKYAHn8
VhdODq6KZ9Tk8MnYenC7SfiJ/cR0N/Yw5R8Yaa1K5qO+dyIwfXTkTr/Kg97N72jE
+M6lQJXeXaD8sR9wE2nhxKnTJToebjr9mnlgavSsotnzjnm9fMt5CPGOUtG/qGNfB
GB/GF1HkbZW7VnGWjgNAozftTRCsFoCTwv/ICcW+vYEDVh+hzWjJ/KLl7PruKDPS
rBlWWdV02QtVKpKYKvynML9kyEX6HeM=
-----END CERTIFICATE-----
diff --git a/core/Readme.md b/core/Readme.md
index f76999e..795c0a4 100644
--- a/core/Readme.md
+++ b/core/Readme.md
@@ -2,3 +2,5 @@ Leap Web Core
===
[Leap](http://www.leap.se) is the Leap Encryption Access Project and this is the rails app for its web interface.
+
+This is the its core gem. Currently it only serves to load shared dependencies.
diff --git a/core/app/assets/images/leap_web_core/.gitkeep b/core/app/assets/images/leap_web_core/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/assets/images/leap_web_core/.gitkeep
+++ /dev/null
diff --git a/core/app/assets/javascripts/leap_web_core/.gitkeep b/core/app/assets/javascripts/leap_web_core/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/assets/javascripts/leap_web_core/.gitkeep
+++ /dev/null
diff --git a/core/app/assets/stylesheets/leap_web_core/.gitkeep b/core/app/assets/stylesheets/leap_web_core/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/assets/stylesheets/leap_web_core/.gitkeep
+++ /dev/null
diff --git a/core/app/controllers/.gitkeep b/core/app/controllers/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/controllers/.gitkeep
+++ /dev/null
diff --git a/core/app/controllers/home_controller.rb b/core/app/controllers/home_controller.rb
deleted file mode 100644
index 7db5397..0000000
--- a/core/app/controllers/home_controller.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-
-class HomeController < ApplicationController
- def index
- end
-end
diff --git a/core/app/helpers/.gitkeep b/core/app/helpers/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/helpers/.gitkeep
+++ /dev/null
diff --git a/core/app/mailers/.gitkeep b/core/app/mailers/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/mailers/.gitkeep
+++ /dev/null
diff --git a/core/app/models/.gitkeep b/core/app/models/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/models/.gitkeep
+++ /dev/null
diff --git a/core/app/views/.gitkeep b/core/app/views/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/core/app/views/.gitkeep
+++ /dev/null
diff --git a/core/app/views/home/index.html.haml b/core/app/views/home/index.html.haml
deleted file mode 100644
index 82f5152..0000000
--- a/core/app/views/home/index.html.haml
+++ /dev/null
@@ -1 +0,0 @@
-%h3 Home
diff --git a/core/test/integration/navigation_test.rb b/core/test/integration/navigation_test.rb
deleted file mode 100644
index eec8c0e..0000000
--- a/core/test/integration/navigation_test.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'test_helper'
-
-class NavigationTest < ActionDispatch::IntegrationTest
-
- # test "the truth" do
- # assert true
- # end
-end
-
diff --git a/core/test/leap_web_core_test.rb b/core/test/leap_web_core_test.rb
deleted file mode 100644
index 0dd71ff..0000000
--- a/core/test/leap_web_core_test.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class LeapWebCoreTest < ActiveSupport::TestCase
- test "truth" do
- assert_kind_of Module, LeapWebCore
- end
-end
diff --git a/core/test/test_helper.rb b/core/test/test_helper.rb
deleted file mode 100644
index 1e26a31..0000000
--- a/core/test/test_helper.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# Configure Rails Environment
-ENV["RAILS_ENV"] = "test"
-
-require File.expand_path("../dummy/config/environment.rb", __FILE__)
-require "rails/test_help"
-
-Rails.backtrace_cleaner.remove_silencers!
-
-# Load support files
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
-
-# Load fixtures from the engine
-if ActiveSupport::TestCase.method_defined?(:fixture_path=)
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
-end
diff --git a/lib/leap_web/version.rb b/lib/leap_web/version.rb
index bac8655..6a74082 100644
--- a/lib/leap_web/version.rb
+++ b/lib/leap_web/version.rb
@@ -1,3 +1,3 @@
module LeapWeb
- VERSION = "0.1.0"
+ VERSION = "0.1.0" unless defined?(LeapWeb::VERSION)
end
diff --git a/lib/tasks/gems.rake b/lib/tasks/gems.rake
index 27eb04c..8120235 100644
--- a/lib/tasks/gems.rake
+++ b/lib/tasks/gems.rake
@@ -12,7 +12,7 @@ namespace :gem do
putsys "bundle exec rake gem"
end
- desc "run rake gem for all gems"
+ desc "clear pkg directory for all gems"
task :clear do
each_gem do |gem_name|
putsys "rm -rf #{gem_name}/pkg"
diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake
new file mode 100644
index 0000000..3c87b45
--- /dev/null
+++ b/lib/tasks/test.rake
@@ -0,0 +1,18 @@
+namespace :test do
+
+ Rails::SubTestTask.new(:units => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/unit/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:functionals => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/functional/**/*_test.rb'
+ end
+
+ Rails::SubTestTask.new(:integration => "test:prepare") do |t|
+ t.libs << "test"
+ t.pattern = '*/test/integration/**/*_test.rb'
+ end
+
+end
diff --git a/test/dummy/config/cert b/test/dummy/config/cert
index e69de29..27db0fd 100644
--- a/test/dummy/config/cert
+++ b/test/dummy/config/cert
@@ -0,0 +1,56 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIFfQIBAAKCATEArnxTeU82frha6g4AchpzAA92ry0PD/FZVK5UiMsbwHfAl/XJ
+udVH0+51DSC5X4p9esftRQNCaJY/4zESe15Sna7aR+FyUoE+LcPpzMpCYH61TUzj
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ key block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid client key Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
+8zqMwDMRf9x7a4GBGmm7n+YSCLy3f8fejw2ZAQIDAQABAoIBMAt3bSQ8Nz3AT20x
+XfEusdn/mGSpq7Co3CprStlr+IaVixpe622FPCNOt0x1RMjR2yrzYkvzC9DZperp
+mWLj7XF3X8FS3gd0Whhl4bS5yZuC8cd7Gq4bx8mGPIwqQzwOXb1mJXt5RPv+zU6X
+J4cSX0GIUBNb1yVsUDouqo1q+saPgBSjhS4xr6sb38XALvzvgVvY/M7YGpSr0Vyv
+ErAwxaGpdk+RppAjcxWBXLuMcIgtU+gSoEogdYzJkoJdwOfcyIllyqlaamcv4T84
+gMWRFncCgZkAzUBt1t3GpuyGVPkD2evtQrBWwg09kx1PAyoNwLDOiarmzUr/euvC
+4W+BfbvmH3Q1dfyQMc/+Y2/LAhvwwkp1F66KsF1xcz6q3FCDN0BGurhIH3rsS1r8
+m+FZ324xLCYXYBDXCwa3B1YsX9d54JuzXzClr+t0xoz5lZzDLgwEEdK9bttGBL0w
+ReIl7KW/TwKDbkPxe+3yCI8CgZkA2aCJUmCtkvaCIX0Udr6g3iyu6lQYbq532/FW
+MNh+KJA3NqXOvGZd9T1DfjlxOqsfGD4H92ekUdy/GdX9SAH4A0RW24gUazNY9N1d
+tdkq8OAxwswquvXC0U5WXsZVp6z1CFawjUiZbW8CgZkAvP9V5SOkN7LWY0pFJJad
+i+oKiXdduqijR/uiXEuyc4v+KQ2lQM/1DEqu0hGKj+enYJtBGPMe+E9+XuZwYMWe
+nsmR1/LNPcM0U3LdOvpviOXv7zNUPyri5sMhjuDFnzMHw1REhsnKqk+XtKJ7yLx9
+I8hiBtKUlBUhietNWEQEnQzxxKMRELaAU+1RFJ7vEVb0JUXFCGPrmbsCgZkAyZrW
+4Zr+GyGz96AetksM5svDVqVed9qzxqPX7/i16F3HmIJKS8lVXLj3TDBJAQTJNhSN
+m+HD6mlClBNzaa2fCTMLtzjAiYhGsRIZbpagCKPRAmcH5bBPSmi+pahBJMBxxdtx
+NdhleRCuWBjM0nBAeYZNkIG3qLegqPaJif4zeJ74QWWsDePox8Xr59C6ev23nUUb
+MnMW7zECgZkAwOOGuqJHyUlsVuErs5c/rLyY0NAqrGoiBp3o5fGnuINzrZSO3zvY
+PcuBeQmnZbkNarfQxFz1ezcf6jmszNStktDj3tFSR8srqpcRKyUPDi1eHD81n8vv
+h1jew1zPRQaQvVZ88p0xacYJeRckbKxcIPGweVqpT9ZJAEGg4J6FFcH+fOIra/7R
+TgLJs443xbTO2GM/25Anc/Pj4bnL2GWqDTurTxANAtmKenuWHTcz47Pm5WNhZP/l
+WWxi9MBzz/80IediLG6qrlU=
+-----END RSA PRIVATE KEY-----
+-----BEGIN CERTIFICATE-----
+MIIEAzCCAlWgAwIBAgIEUFDq+zANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDEwRU
+RVNUMB4XDTEyMDkxMjIwMDUxNVoXDTEzMDkxMjIwMDUxNVowOjEPMA0GA1UEChMG
+YLQLzfay6cw1arn QC87f3tvmWI7F0zb9KWE9c
+XepnHyr2QJDzMiL This is an invalid eOUK8hc+uTReTXpAtD3S3X
+rC3KeJR+jOynTkJ cert block for testing Sc6Cz2uJBeARNLvTBAj66q
+zfvMIlBOBRCWSQf please replace with a IfExunVQnU+xbRx7W9Gg3i
+NV307K4fgLJbY4b valid server cert Y69SOuXgz7ECsoXy1bWQsi
+TETM5TX/6dADz0z FCc8I167mT25s2HNLnZ8AI
+4GFRwh8TG6dVCdT7FtHHtb0aDeLzOozAMxF/3HtrgYEaabuf5hIIvLd/x96PDZkB
+WAotdJzoLPa4kF4BE0u9MECPrqrN+8wiUE4FEJZJB+/M2WFm+pfZgp1qXx6AL0IC
+AgMBAAGjdjB0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDwYD
+VR0PAQH/BAUDAwegADAdBgNVHQ4EFgQUU9Uc5ljBzINN4S6oj80rn+mJTLEwHwYD
+AMCxt8hxLtQlSgfY4MHxlNOE/hepArRQ1KoqW8TZ3DaDZacYuHK6TkarBuVshrAa
+VR0jBBgwFoAU/z1/F2dGNow5Kac+jx7NtyIM0BAwDQYJKoZIhvcNAQELBQADggGX
+TkPLvTbMIeZ/DGC6snrnyspVPVun8X1NcdkqOiSWCt5Y1Li4sClXT+XUFaKES4NS
+SN8LDKX0J+q2n4nRuotaOdq12qs8ZQkMsSI5ueR0soHY1XuSJCK75PFxLJKq3ydm
+FhMVy/bQZgl9QAt7HNK7QoISBmkQFYey0Qq7aotloMhlIyCSN569RcKHdPhZCsCE
+c/YgEkmZwOBR7ypXnT0Tcele120v+qhCRSeoZIEwtm27Dp8+My82fpx7xMKYAHn8
+VhdODq6KZ9Tk8MnYenC7SfiJ/cR0N/Yw5R8Yaa1K5qO+dyIwfXTkTr/Kg97N72jE
+M6lQJXeXaD8sR9wE2nhxKnTJToebjr9mnlgavSsotnzjnm9fMt5CPGOUtG/qGNfB
+GB/GF1HkbZW7VnGWjgNAozftTRCsFoCTwv/ICcW+vYEDVh+hzWjJ/KLl7PruKDPS
+rBlWWdV02QtVKpKYKvynML9kyEX6HeM=
+-----END CERTIFICATE-----
diff --git a/test/dummy/log/test.log b/test/dummy/log/test.log
deleted file mode 100644
index ccc2d30..0000000
--- a/test/dummy/log/test.log
+++ /dev/null
@@ -1,1244 +0,0 @@
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 21:42:54 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 62ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 21:42:55 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 13ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 21:42:55 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 15ms
-Processing by SessionsController#destroy as HTML
-Completed 500 Internal Server Error in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 500 Internal Server Error in 190ms
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 1ms
-Processing by UsersController#new as HTML
-Completed 500 Internal Server Error in 30ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 22:56:01 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 1094ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 22:56:03 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 15ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 22:56:03 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 64ms
-Processing by SessionsController#destroy as HTML
-Completed 500 Internal Server Error in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 500 Internal Server Error in 1010ms
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 1ms
-Processing by UsersController#new as HTML
-Completed 500 Internal Server Error in 68ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 23:49:45 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 42ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 23:49:45 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 12ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 23:49:45 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 13ms
-Processing by SessionsController#destroy as HTML
-Completed 500 Internal Server Error in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 500 Internal Server Error in 99ms
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 1ms
-Processing by UsersController#new as HTML
-Completed 500 Internal Server Error in 29ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 23:55:38 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 43ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 23:55:38 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 15ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Thu Aug 23 23:55:38 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 21ms
-Processing by SessionsController#destroy as HTML
-Completed 500 Internal Server Error in 2ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 500 Internal Server Error in 99ms
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"me", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 1ms
-Processing by UsersController#new as HTML
-Completed 500 Internal Server Error in 29ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 00:03:59 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 45ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 00:03:59 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 15ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 00:03:59 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 17ms
-Processing by SessionsController#destroy as HTML
-Completed 500 Internal Server Error in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 500 Internal Server Error in 98ms
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 500 Internal Server Error in 1ms
-Processing by UsersController#new as HTML
-Completed 500 Internal Server Error in 34ms
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 2ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 00:08:20 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 49ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 00:08:21 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.2ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 00:08:21 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.3ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 90ms (Views: 89.4ms)
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 19ms (Views: 18.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 2ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:34:21 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 96ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:34:21 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:34:21 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.2ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 212ms (Views: 211.6ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"me", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 35ms (Views: 34.5ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:35:32 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 50ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:35:32 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 18ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:35:32 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.3ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 91ms (Views: 91.1ms)
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 2ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 18ms (Views: 17.6ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:47:02 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 52ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:47:02 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 16ms (Views: 0.2ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:47:02 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.2ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 38ms (Views: 38.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 0ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 0ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 2ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 18ms (Views: 17.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 2ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:47:14 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 50ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:47:14 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 14ms (Views: 0.2ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:47:15 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"integration_test_user", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.2ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 38ms (Views: 37.6ms)
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 0ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "login"=>"me", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 17ms (Views: 17.0ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 56ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"86b7b6251081d6cc54e23706ecb92019f7eb770dbe9161e97371a155aa3ba904"}
-Completed 200 OK in 8ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"integration_test_user", "client_auth"=>"6fe632efa6c4bc707cbca53bdc327e3ac0e8dd3de06ec60cc70ae66bccffbec5"}
-Completed 200 OK in 69ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 16ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"54dbd0535db592074d3993038676039e05e09704f53b893311d0a069a520ee5a"}
-Completed 200 OK in 8ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"integration_test_user", "client_auth"=>"6c731717540ed41bd701ec7672d8e1d9b11c7bd7e66d866d564241aa012d3eba"}
-Completed 200 OK in 9ms (Views: 0.4ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 15ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:53:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"wronglogin", "A"=>"736077507e34ed76a8510cb691647084d98fdd386d460c84228e2085eea6cf60"}
-Completed 200 OK in 64ms (Views: 0.4ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 40ms (Views: 40.0ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"me", "client_auth"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me", "password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 5ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 24ms (Views: 23.4ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 100ms (Views: 100.1ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 8ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 100ms (Views: 99.0ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 52ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"18d5f90618da300e42ddfca4ae0892d70188fc1bd15806a62e9727694d048d41"}
-Completed 200 OK in 7ms (Views: 0.2ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"integration_test_user", "client_auth"=>"c9669e6d2e637a2dd4c88f1e14dac9411feff213a594d5375392fd9507be7554"}
-Completed 200 OK in 12ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 11ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"5c888674fc202f583edb74ddd76d51d1d91f29ef13f275e0e6590f489697b984"}
-Completed 200 OK in 7ms (Views: 0.2ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"integration_test_user", "client_auth"=>"a69f83478fb2794670d4a01f1d8fafc3aab9552dff2e40608fc0c1465d503000"}
-Completed 200 OK in 9ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"login"=>"integration_test_user", "password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 14ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:56:16 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"wronglogin", "A"=>"1d4dd9d87394fb996cf5c9cd26ceae999ee91d6e918ae4898487d29299f97def"}
-Completed 200 OK in 4ms (Views: 0.4ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 53ms (Views: 0.7ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"f13b416ca8f8f26d00e005fadd4c94744ff866110f9d090ae23ac249a7da6079", "login"=>"integration_test_user"}
-Completed 200 OK in 6ms (Views: 0.2ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"608400e10ba35bb964b1e2d69d141484f7ed1307a77f1f991e33bb713906b00c", "id"=>"integration_test_user"}
-Completed 200 OK in 61ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"73f9bc1a40ae806817f6cab3a355f9c575d7574402b426b89c2c66d1c39ab82a", "login"=>"integration_test_user"}
-Completed 200 OK in 9ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"79473702fd2354792f4403f7116bd664b5f799cb40f328422c02a07cf0a1623e", "id"=>"integration_test_user"}
-Completed 200 OK in 9ms (Views: 0.4ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 09:58:23 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a84357df5892d8cdf74d55947f7ac8edbcea92c8a19af7403ec3db027dd8ebc8", "login"=>"wronglogin"}
-Completed 200 OK in 5ms (Views: 0.3ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 94ms (Views: 93.5ms)
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 20ms (Views: 19.0ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"integration_test_user", "password_verifier"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 49ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"2f856f5d037678c93fe314de8368100990c6ff2262f05b6a839e85dfa24677b"}
-Completed 200 OK in 8ms (Views: 0.2ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"efaf709c62d216af9651ddba8025f54d22dcec60907bd74e78fc8cf48529a86e", "id"=>"integration_test_user"}
-Completed 200 OK in 62ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"integration_test_user", "password_verifier"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 13ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"2b61fe1e9c6dcf534267f898677aaff6dacb3ba59d7f7f73d20a3653aea5d5e3"}
-Completed 200 OK in 9ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"61fa2879b62eacf34216d4b9560a64dd30541fc71192984fdbd7113dbc25f00a", "id"=>"integration_test_user"}
-Completed 200 OK in 9ms (Views: 0.4ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "login"=>"integration_test_user", "password_verifier"=>"[FILTERED]"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 15ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 10:36:38 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"wronglogin", "A"=>"f7fe517fb7aefc41633d1e2f0b4df845321479f37ffc713407daff0d9551e14e"}
-Completed 200 OK in 5ms (Views: 0.5ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 89ms (Views: 89.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#new as HTML
-Completed 200 OK in 29ms (Views: 28.0ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 49ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"799c9b3dd2e5e8819b602709392116adda74a2bf9b9099067c9053b5ac451e8d", "login"=>"integration_test_user"}
-Completed 200 OK in 6ms (Views: 0.2ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"95bb7fbdbe81bb4a23979b454fe411f30cbe84c38addc36c681a70fe3e9d1954", "id"=>"integration_test_user"}
-Completed 200 OK in 61ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"dd43208fd903fa0566b28762747ba5c5c9d14d2483254078247c8066068e8843", "login"=>"integration_test_user"}
-Completed 200 OK in 7ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"c22060242c28c76491026a98b812d16a94bac821d3c32443810ce1ed12ed3b9b", "id"=>"integration_test_user"}
-Completed 200 OK in 8ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 10:37:34 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"70310508bd80485f27e7b073ca4df34b6f2385eab38982e4d9470af4044d934a", "login"=>"wronglogin"}
-Completed 200 OK in 4ms (Views: 0.3ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 90ms (Views: 89.3ms)
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"a123", "login"=>"me"}
-Completed 200 OK in 1ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 18ms (Views: 17.6ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 104ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"42dc9d94507a80b9bb57bc77594e4c5938487bf36c72db98765522535bf54f5f"}
-Completed 200 OK in 7ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"52a9145dcde0842b075d41a82651a2de18bf4b283bca8e386e7f75410f3d6463", "id"=>"integration_test_user"}
-Completed 200 OK in 11ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"df80bc7b52846fdb35c3a396432efe5963dc0f766ff4fe1b825462bf69ea8bf4"}
-Completed 200 OK in 9ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"5c4be413569756b55d6e3e8e8d7b76078a1fe080da39a410abb9085db2eb04fd", "id"=>"integration_test_user"}
-Completed 200 OK in 8ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 11ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 11:39:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"wronglogin", "A"=>"2a73003b8c8ca88e6b051cbf344df5937530413998f13f85045ae31a5be8fb9"}
-Completed 200 OK in 54ms (Views: 0.4ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 39ms (Views: 38.4ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 0ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 18ms (Views: 17.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 101ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"bf69e20fa47d287c51d632336596b41526f6c0cd3e2449bd960509a29bfa2961"}
-Completed 200 OK in 7ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"fed972599dd4e5b70f6bd0bd8a57be1b5e98ee096933b03c1ddd873f4a2657c1", "id"=>"integration_test_user"}
-Completed 200 OK in 11ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 12ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"integration_test_user", "A"=>"d3e93135f8ad2360e2d589afc1882b1cea00cf4755cfc9b6afee5aafb0504f30"}
-Completed 200 OK in 7ms (Views: 0.3ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"157dbd5ac6385e60f0f5bab7150cce8ee92441e4596194ab177683be963eca7f", "id"=>"integration_test_user"}
-Completed 200 OK in 8ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Completed 201 Created in 11ms (Views: 0.2ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Fri Aug 24 11:44:47 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"wronglogin", "A"=>"c285e722bc1d826a009e3d4fb5e92fd4ade4f00ba2d7b7d4946e3e1a404928b"}
-Completed 200 OK in 4ms (Views: 0.3ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#new as HTML
-Completed 200 OK in 41ms (Views: 40.3ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 200 OK in 1ms (Views: 0.3ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/
-Completed 302 Found in 3ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 18ms (Views: 17.8ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-
-***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
-
-Redirected to http://test.host/users/new
-Completed 302 Found in 1ms
-
-
-Started POST "/users.json" for 127.0.0.1 at Tue Oct 02 23:02:02 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-Completed 201 Created in 142ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Tue Oct 02 23:02:03 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"ed4f1fbb97cddc6a89a2b7da9ef5361e53ad9aac5b2ea4ecd89c68c8faf5f40", "login"=>"integration_test_user"}
-Completed 200 OK in 3966ms (Views: 0.9ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Tue Oct 02 23:02:07 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"integration_test_user", "client_auth"=>"28d9daa3ba48ead895d21157f42bd7d19219c188d8a6627d720f0e2ce9b5f5bc"}
-Completed 200 OK in 24ms (Views: 0.4ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Tue Oct 02 23:02:07 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-Completed 201 Created in 11ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Tue Oct 02 23:02:07 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"31485189d6b8c70926be5327a7c2324e9f6d0b8fe11a4218d36609586347820b", "login"=>"integration_test_user"}
-Completed 200 OK in 458ms (Views: 0.4ms)
-
-
-Started PUT "/sessions/integration_test_user" for 127.0.0.1 at Tue Oct 02 23:02:08 +0200 2012
-Processing by SessionsController#update as HTML
- Parameters: {"id"=>"integration_test_user", "client_auth"=>"37f23433a5a0ac70627eff14f0aee883493d84d87f739f84cd656ffd3515ab98"}
-Completed 200 OK in 10ms (Views: 0.5ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Tue Oct 02 23:02:08 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_salt"=>"[FILTERED]", "password_verifier"=>"[FILTERED]", "login"=>"integration_test_user"}}
-Completed 201 Created in 11ms (Views: 0.3ms)
-
-
-Started POST "/sessions" for 127.0.0.1 at Tue Oct 02 23:02:08 +0200 2012
-Processing by SessionsController#create as HTML
- Parameters: {"A"=>"7c69083c85178f5217f656fdf1261b92fa2660023538310c9f3d6a380b60be96", "login"=>"wronglogin"}
-Completed 200 OK in 5ms (Views: 0.4ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Mon Oct 08 11:31:35 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-Completed 201 Created in 70ms (Views: 0.5ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Mon Oct 08 11:31:35 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-Completed 201 Created in 10ms (Views: 0.3ms)
-
-
-Started POST "/users.json" for 127.0.0.1 at Mon Oct 08 11:31:35 +0200 2012
-Processing by UsersController#create as JSON
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"integration_test_user"}}
-Completed 201 Created in 12ms (Views: 0.2ms)
-Processing by SessionsController#destroy as HTML
-Redirected to http://test.host/
-Completed 302 Found in 1ms
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 500 Internal Server Error in 1ms
-Processing by SessionsController#new as HTML
-Completed 200 OK in 68ms (Views: 67.6ms)
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"me", "A"=>"a123"}
-Completed 500 Internal Server Error in 1ms
-Processing by SessionsController#create as HTML
- Parameters: {"login"=>"login_that_does_not_exist"}
-Completed 200 OK in 0ms (Views: 0.2ms)
-Processing by SessionsController#update as HTML
- Parameters: {"client_auth"=>"a123", "id"=>"me"}
-Completed 500 Internal Server Error in 1ms
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"password_verifier"=>"[FILTERED]", "password_salt"=>"[FILTERED]", "login"=>"me"}}
-Redirected to http://test.host/
-Completed 302 Found in 59ms
-Processing by UsersController#new as HTML
-Completed 200 OK in 19ms (Views: 18.2ms)
-Processing by UsersController#create as HTML
- Parameters: {"user"=>{"login"=>"me"}}
-Redirected to http://test.host/users/new
-Completed 302 Found in 2ms
-Processing by CertsController#show as HTML
- Rendered text template (0.0ms)
-Completed 200 OK in 5ms (Views: 5.0ms)
-Processing by CertsController#show as HTML
- Rendered text template (0.0ms)
-Completed 200 OK in 5ms (Views: 4.5ms)
diff --git a/users/test/functional/sessions_controller_test.rb b/users/test/functional/sessions_controller_test.rb
index 7876d84..b6e56a7 100644
--- a/users/test/functional/sessions_controller_test.rb
+++ b/users/test/functional/sessions_controller_test.rb
@@ -8,7 +8,9 @@ class SessionsControllerTest < ActionController::TestCase
@server_hex = 'b123'
@server_rnd = @server_hex.hex
@server_rnd_exp = 'e123'.hex
+ @salt = 'stub user salt'
@server_handshake = stub :aa => @client_rnd, :bb => @server_rnd, :b => @server_rnd_exp
+ @server_auth = 'adfe'
end
test "should get login screen" do
@@ -21,11 +23,13 @@ class SessionsControllerTest < ActionController::TestCase
user.expects(:initialize_auth).
with(@client_rnd).
returns(@server_handshake)
+ @server_handshake.expects(:to_json).
+ returns({'B' => @server_hex, 'salt' => @salt}.to_json)
User.expects(:find_by_param).with(user.login).returns(user)
post :create, :login => user.login, 'A' => @client_hex
assert_equal @server_handshake, session[:handshake]
assert_response :success
- assert_json_response :B => @server_hex
+ assert_json_response :B => @server_hex, :salt => @salt
end
test "should report user not found" do
@@ -39,9 +43,11 @@ class SessionsControllerTest < ActionController::TestCase
test "should authorize" do
session[:handshake] = @server_handshake
user = stub :login => "me", :id => 123
- user.expects(:authenticate!).
- with(@client_rnd, @server_handshake).
+ @server_handshake.expects(:authenticate!).
+ with(@client_rnd).
returns(@server_auth)
+ @server_handshake.expects(:to_json).
+ returns({:M2 => @server_auth}.to_json)
User.expects(:find_by_param).with(user.login).returns(user)
post :update, :id => user.login, :client_auth => @client_hex
assert_nil session[:handshake]
@@ -52,8 +58,8 @@ class SessionsControllerTest < ActionController::TestCase
test "should report wrong password" do
session[:handshake] = @server_handshake
user = stub :login => "me", :id => 123
- user.expects(:authenticate!).
- with(@client_rnd, @server_handshake).
+ @server_handshake.expects(:authenticate!).
+ with(@client_rnd).
raises(WRONG_PASSWORD)
User.expects(:find_by_param).with(user.login).returns(user)
post :update, :id => user.login, :client_auth => @client_hex
diff --git a/users/test/integration/api/account_flow_test.rb b/users/test/integration/api/account_flow_test.rb
index e20bcf6..66de1e5 100644
--- a/users/test/integration/api/account_flow_test.rb
+++ b/users/test/integration/api/account_flow_test.rb
@@ -30,40 +30,39 @@ class AccountFlowTest < ActionDispatch::IntegrationTest
:password_verifier => @srp.verifier.to_s(16),
:password_salt => @srp.salt.to_s(16)
}
+ post '/users.json', :user => @user_params
+ @user = User.find_by_param(@login)
end
def teardown
@user.destroy if @user # make sure we can run this test again
end
- test "signup and login with srp via api" do
- post '/users.json', :user => @user_params
- @user = User.find_by_param(@login)
+ test "signup response" do
assert_json_response @user_params.slice(:login, :password_salt)
assert_response :success
- server_auth = @srp.authenticate(self, @login, @password)
+ end
+
+ test "signup and login with srp via api" do
+ server_auth = @srp.authenticate(self)
assert_nil server_auth["errors"]
assert server_auth["M2"]
end
test "signup and wrong password login attempt" do
- post '/users.json', :user => @user_params
- @user = User.find_by_param(@login)
- assert_json_response @user_params.slice(:login, :password_salt)
- assert_response :success
- server_auth = @srp.authenticate(self, @login, "wrong password")
+ srp = SRP::Client.new(@login, "wrong password")
+ server_auth = srp.authenticate(self)
assert_equal ["wrong password"], server_auth["errors"]['password']
assert_nil server_auth["M2"]
end
test "signup and wrong username login attempt" do
- post '/users.json', :user => @user_params
- @user = User.find_by_param(@login)
- assert_json_response @user_params.slice(:login, :password_salt)
- assert_response :success
+ srp = SRP::Client.new("wrong_login", @password)
+ server_auth = nil
assert_raises RECORD_NOT_FOUND do
- server_auth = @srp.authenticate(self, "wronglogin", @password)
+ server_auth = srp.authenticate(self)
end
+ assert_nil server_auth
end
end