Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bugfix

  • Loading branch information...
commit f3b6b5dbcdbb30d81972e6432c345a81d37e81d7 1 parent e5ba89b
Josep Jaume Rey authored November 29, 2011
3  lib/empresaula-api/test_helpers/user.rb
@@ -11,7 +11,8 @@ module User
11 11
         def mock_current_user(user)
12 12
           cookies = Capybara.current_session.driver.browser.current_session.instance_variable_get(:@rack_mock_session).cookie_jar
13 13
           cookies[:empresaula_session] = 'qwertyuiop123456789'
14  
-          add_mock '/api/users/qwertyuiop123456789.json', user
  14
+          session = {session: {user: user}}
  15
+          add_mock '/api/sessions/qwertyuiop123456789.json', session
15 16
           mock_user user
16 17
           @current_user = Empresaula::API::Resource::User.find(user[:id])
17 18
         end
2  lib/empresaula-api/version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module Empresaula
2 2
   module API
3  
-    VERSION = "0.0.2"
  3
+    VERSION = "0.0.2.1"
4 4
   end
5 5
 end

0 notes on commit f3b6b5d

Please sign in to comment.
Something went wrong with that request. Please try again.