<feed xmlns='http://www.w3.org/2005/Atom'>
<title>leap_web.git/users/test/functional, branch 0.2.4</title>
<subtitle>[leap_web] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/'/>
<entry>
<title>Merge pull request #73 from azul/bugfix/3623-teardown-test-data-properly</title>
<updated>2013-09-03T17:48:13+00:00</updated>
<author>
<name>jessib</name>
<email>jessib@riseup.net</email>
</author>
<published>2013-09-03T17:48:13+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=07d0f6fe1d80cb730bd12a03a107c18d18779acc'/>
<id>07d0f6fe1d80cb730bd12a03a107c18d18779acc</id>
<content type='text'>
Bugfix/3623 teardown test data properly</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bugfix/3623 teardown test data properly</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #75 from azul/feature/token-expiry</title>
<updated>2013-09-03T17:43:34+00:00</updated>
<author>
<name>jessib</name>
<email>jessib@riseup.net</email>
</author>
<published>2013-09-03T17:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=f3e17149116f6a3aeb87f8a6d0ecf29e8e33ad93'/>
<id>f3e17149116f6a3aeb87f8a6d0ecf29e8e33ad93</id>
<content type='text'>
Token expiry</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Token expiry</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup sessions controller - webapp logs in through the api.</title>
<updated>2013-09-03T08:49:00+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-09-03T08:49:00+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=9a70f0e317e62993337e3e47382dcb7795d65652'/>
<id>9a70f0e317e62993337e3e47382dcb7795d65652</id>
<content type='text'>
So the #create and #update actions were not needed anymore. Also removed the tests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So the #create and #update actions were not needed anymore. Also removed the tests
</pre>
</div>
</content>
</entry>
<entry>
<title>Account: Composition to handle User and its identities</title>
<updated>2013-09-03T06:54:25+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-30T09:20:04+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=859b79d0dcd53c85bb57e3db888a1af702802987'/>
<id>859b79d0dcd53c85bb57e3db888a1af702802987</id>
<content type='text'>
We have a lot of things that act upon a user record and one or more of it's identities at the same time:
* Sing up: Create a user and it's initial identity
* Rename:  Change the username and create a new identity, turn old into an alias
* Cancel Account: Remove user and all their identities.

In order to keep the User and Identity behaviour isolated but still have a this logic represented in a sinle place the Account model deals with all these things.

We could have overwritten the User#create, User#update and User#destroy methods instead. But then we would always create identities, even if we only need a user (for example in tests).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have a lot of things that act upon a user record and one or more of it's identities at the same time:
* Sing up: Create a user and it's initial identity
* Rename:  Change the username and create a new identity, turn old into an alias
* Cancel Account: Remove user and all their identities.

In order to keep the User and Identity behaviour isolated but still have a this logic represented in a sinle place the Account model deals with all these things.

We could have overwritten the User#create, User#update and User#destroy methods instead. But then we would always create identities, even if we only need a user (for example in tests).
</pre>
</div>
</content>
</entry>
<entry>
<title>simplify users_controller_test</title>
<updated>2013-09-03T06:54:25+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-30T08:33:39+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=83068449b1c874bb5d09a3e189fe7d7669c25780'/>
<id>83068449b1c874bb5d09a3e189fe7d7669c25780</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>expire token according to config setting auth:token_expires_after</title>
<updated>2013-09-03T06:36:17+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-28T09:13:38+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=42cef3117cd97d9c37968a8cf63d33b27b4b8ed2'/>
<id>42cef3117cd97d9c37968a8cf63d33b27b4b8ed2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>separate different tests for showing non existant user</title>
<updated>2013-08-27T12:57:44+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-27T12:56:41+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=1e6e6d82ed53b1db558b7c1f4e14740962cc406a'/>
<id>1e6e6d82ed53b1db558b7c1f4e14740962cc406a</id>
<content type='text'>
This way the failed stubbing errors were more telling
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This way the failed stubbing errors were more telling
</pre>
</div>
</content>
</entry>
<entry>
<title>token.user will get you the right user</title>
<updated>2013-08-27T12:57:44+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-27T12:55:43+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=5e6a2a2995598489372676bf8e045dc2dfda6c81'/>
<id>5e6a2a2995598489372676bf8e045dc2dfda6c81</id>
<content type='text'>
This way we can stub the token to return the user directly. Stubbing User.find_by_param is not a good idea as it will make all calls to User#find_by_param with a different id fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This way we can stub the token to return the user directly. Stubbing User.find_by_param is not a good idea as it will make all calls to User#find_by_param with a different id fail.
</pre>
</div>
</content>
</entry>
<entry>
<title>clear token on logout with test</title>
<updated>2013-08-27T12:57:44+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-27T12:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=420bfb326f974eec14b04d6a170ed2d28c14180f'/>
<id>420bfb326f974eec14b04d6a170ed2d28c14180f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>basic testing for token based auth in tests</title>
<updated>2013-08-27T12:57:44+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-27T09:14:30+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=e60ee749cab0f80cf23ca57e28c7de6d1b3a395b'/>
<id>e60ee749cab0f80cf23ca57e28c7de6d1b3a395b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
