Commit graph

14652 commits

Author SHA1 Message Date
Jonne Haß
61c72b44e9 update rails to 4.0.5 2014-08-23 16:47:56 +02:00
Florian Staudacher
b07f6cf1db adapt rebased changes to jasmine 2 2014-08-23 16:47:48 +02:00
Florian Staudacher
037671f1b6 port remaining specs - jasmine is green again (non-CI) 2014-08-23 16:46:08 +02:00
Florian Staudacher
304e560e43 use new jasmine async code 2014-08-23 16:46:08 +02:00
Florian Staudacher
d4aca571ac add jasmine-jquery gem and use it, port some more specs 2014-08-23 16:46:08 +02:00
Florian Staudacher
4d3874cc2e port more specs, add aspect factory 2014-08-23 16:46:04 +02:00
Florian Staudacher
adf7aa98dd port router specs, don't test backbone - our own code is enough 2014-08-23 16:38:58 +02:00
Florian Staudacher
c81379d38f port some more JS specs to jasmine 2.0... still a lot to do 2014-08-23 16:38:57 +02:00
Florian Staudacher
43f156420d update jasmine mock-ajax, port SpecHelper to jasmine 2.0
- some tests should be passing again now
2014-08-23 16:38:57 +02:00
Jonne Haß
397606bc44 turn parameter wrapping for AR::B#to_json back on 2014-08-23 16:38:57 +02:00
Jonne Haß
b3e59dc3d5 fix PostsController specs by using explicit form of the sign_in helper 2014-08-23 16:38:57 +02:00
Jonne Haß
0d42285496 Do not update_attributes with a nil id
Rails 4 accepts that as a parameter thus setting the id to nil
thus thinking it'd be a new record when we just want to update
it
2014-08-23 16:38:57 +02:00
Jonne Haß
1b3a2185eb Fix and simplify current_page? check on profile page 2014-08-23 16:38:57 +02:00
Jonne Haß
cb13d30a02 Directly query photos when doing an update_all
For some reason it doesn't correctly set the bind variables
when called through an association with non-standard
keys. Probably a Rails bug.
2014-08-23 16:38:57 +02:00
Jonne Haß
35b17d8c4f Do not call self-modifying Enumerable methods on AR::Relation objects 2014-08-23 16:38:57 +02:00
Jonne Haß
da9c1db14f before_action 2014-08-23 16:38:57 +02:00
Jonne Haß
7fd2294111 switch to simple_captcha2 2014-08-23 16:38:50 +02:00
Niall Paterson
f33038f105 updated before_filters to before_actions as recommended for rails 4 2014-08-23 16:34:01 +02:00
Jonne Haß
244388fcb5 make aspect membership controller specs green 2014-08-23 16:34:01 +02:00
Jonne Haß
ceee5baae6 raise original exception in i18n interpolation fallback middleware 2014-08-23 16:34:01 +02:00
Jonne Haß
21feb91d27 always pass desired format in specs unless it's html 2014-08-23 16:34:01 +02:00
Jonne Haß
645a427798 Fix account deleter by not relying on protected_atrributes 2014-08-23 16:34:01 +02:00
Jonne Haß
2d57e15d5d Remove :without_protection from call in the posts fetcher and fix a couple hundreds specs as a side effect
Heisenbugs ftw.
2014-08-23 16:34:01 +02:00
Jonne Haß
7e7082a3bd Fix expectations for changes in generated HTML
Just a minor change, supplied attributes now go before the
standard ones
2014-08-23 16:34:01 +02:00
Jonne Haß
dc12479070 Filter :id in User.build for now
Rails 4 seem to allow setting the id through supplied parameters
The controllers ported to strong_parameters should guard against
attacks over this vector, but I didn't want to remove the specs
that test this here
2014-08-23 16:34:01 +02:00
Jonne Haß
659f0b96d4 do not pass relations to a method that expects a set of aspects ids or a single aspect 2014-08-23 16:34:01 +02:00
Jonne Haß
76c6d95a0e replace deprecated disable_with option 2014-08-23 16:34:01 +02:00
Jonne Haß
09f0665225 replace deprecated usages for all 2014-08-23 16:34:01 +02:00
Jonne Haß
cc8a614c29 Remove attr_accessible from OpenGraphCache 2014-08-23 16:34:01 +02:00
Jonne Haß
2f1193fa36 Fix "prepared statements" errors
See https://coderwall.com/p/45ombq
2014-08-23 16:34:00 +02:00
Jonne Haß
dfa0245f4b make assets:precompile work 2014-08-23 16:34:00 +02:00
Jonne Haß
a9e107364a make status message controller spec pass and deprecation free 2014-08-23 16:34:00 +02:00
Jonne Haß
2cca5745c9 remove deprecated scoped 2014-08-23 16:34:00 +02:00
Jonne Haß
cb195f4d55 access connection through class 2014-08-23 16:34:00 +02:00
Jonne Haß
2f54d4f17d remove conditions on association deprecation warnings 2014-08-23 16:34:00 +02:00
Jonne Haß
89afb616cf replace deprecated scope syntax and unify it 2014-08-23 16:34:00 +02:00
Jonne Haß
33c3b38f2f replace deprecated finder and finder_options syntax 2014-08-23 16:34:00 +02:00
Jonne Haß
d75632401b make everything boot again 2014-08-23 16:34:00 +02:00
Jonne Haß
467df1df77 generate binstubs 2014-08-23 16:34:00 +02:00
Jonne Haß
59d60ff947 remove strong_parameters initializer 2014-08-23 16:34:00 +02:00
Jonne Haß
55f40a2b65 update to rails 4 2014-08-23 16:33:53 +02:00
Jonne Haß
58927d1a9d bump sidekiq to 2.17.7 2014-08-23 16:03:17 +02:00
Jonne Haß
c4970b485f Merge pull request #5131 from wegotcoders/3801_delete_own_photos
3801 delete own photos
2014-08-23 10:52:29 +02:00
Jonne Haß
18ead3e2e4 Merge pull request #5136 from svbergerem/fix-regression-login-css
Fix mobile sign in page regression
2014-08-22 00:22:07 +02:00
Steffen van Bergerem
987c982bb5 Fix mobile sign in page regression 2014-08-21 22:19:14 +02:00
Jonne Haß
2b50001286 Merge pull request #5132 from svbergerem/remove-unused-login-js
Remove unused js code for login page
2014-08-19 18:05:21 +02:00
Daniel Sun
13419066d4 refactor authorIsCurrentUser to user model as isAuthorOf
Dried up authorIsCurrentUser in views.js

removed authorIsCurrentUser, now called from views.js

remove authorIsCurrentUser from views.js
2014-08-19 10:37:57 +01:00
op48
844fe9d6b9 Allow users to delete own photos from gallery
Added delete label to photos in gallery

added an event to delete photos of current user

Added css for hiding/revealing the delete label

Included the photo stylesheet

Added cucumber test for deleting your own photos

Removed wip
2014-08-19 10:11:06 +01:00
Steffen van Bergerem
9e32eb370a Remove unused js code for login page 2014-08-19 09:25:48 +02:00
Jonne Haß
8654e1b3ad remove unused variable in i18n.js [ci skip] 2014-08-18 21:09:57 +02:00