Benjamin Neff
cbbb0a55c2
Add redirect to mobile-only photo URL when in desktop UI
...
This URL is only used in the mobile UI, but when somebody then copies
the link and sends it to somebody on the desktop UI, they don't see
anything. So lets just redirect to the post containing the photo, so
there is at least something to show.
If there is no linked post, just redirect to the image instead.
Fixes #8352
2022-10-30 00:32:31 +02:00
Ntavranis Serafeim
671e8476ba
Update factory_girl to factory_bot
2021-04-11 01:51:38 +02:00
Dennis Schubert
e40a07f204
Replace be_success with be_successful in specs.
...
be_success is deprecated and will be removed in Rails 6.
2020-02-11 23:53:14 +01:00
Benjamin Neff
b42c9896bc
Migrate pending profile photos and fix upload to unpend profile photos
...
fixes #8043
closes #8044
2019-07-04 02:29:17 +02:00
Benjamin Neff
e82690963d
Add # frozen_string_literal: true to all files
2017-09-17 19:29:15 +02:00
Steffen van Bergerem
ff9591aee0
Use gender-neutral forms in comments and specs
...
closes #7544
2017-08-17 00:50:55 +02:00
Benjamin Neff
2a6515fab9
Add params keyword to controller specs
2017-08-12 15:39:23 +02:00
Justin Ramos
fa71af71c1
require spec_helper in .rspec
...
closes #7223
2016-11-27 21:27:12 +01:00
cmrd Senya
4ae26e1ded
Upgrade devise to 4.2
2016-08-11 12:25:36 +03:00
cmrd Senya
15e0f88758
Rename photos[:count] to photos_count in gon
2016-08-08 17:19:26 +03:00
Steffen van Bergerem
89f21e87f8
Remove unused code
2016-02-14 02:48:51 +01:00
Steffen van Bergerem
05a6d95811
Always show public photos
...
closes #6398
2015-09-14 22:04:53 +02:00
Steffen van Bergerem
6fea450777
Fix mobile photos index page
...
closes #6243
2015-07-27 01:59:26 +02:00
Steffen van Bergerem
d2222a97e5
Fix photo count in the profile view
2015-03-10 11:38:49 +01:00
Steffen van Bergerem
eb7e2eac9d
Update jasmine-ajax
2015-02-17 04:03:42 +01:00
khall
c42916df27
Two tests failing after rspec 2.99 => 3.0.0
2014-08-26 17:10:26 -07:00
khall
027bb9fcb0
Rspec version bump to 2.99
2014-08-26 17:00:21 -07:00
Jonne Haß
42b08e8ab8
Update to Rails 4.1
2014-08-25 17:37:02 +02:00
Jonne Haß
21feb91d27
always pass desired format in specs unless it's html
2014-08-23 16:34:01 +02:00
Hincu Petru
e0b23b2dc4
Fixed #4726 infinite photo stream
2014-03-12 22:22:24 +00:00
Jonne Haß
df0bff6537
replace stub! with stub
2014-01-13 12:25:37 +01:00
Jonne Haß
f9a3990562
do not leak photos through photos#show
2013-08-26 09:39:39 +02:00
James Fleming
d6ba6d1b02
Use strong params in photos_controller
...
Add specs to check mass-assignment gotchas in PhotosController.
2013-08-02 11:39:05 +02:00
Tamas Laszlo Fabian
d59648504d
Added test to avoid regression
2013-06-24 15:37:17 +02:00
Jonne Haß
58d1448085
update factory girl
2012-09-12 13:24:23 +02:00
Steven Hancock
a8de3a5a3f
Rails.root and File.join cleanup
...
- `Rails.root` is a `Pathname`, so let's use `Rails.root.join`
- Clean up most of the remaining `File.join`s
2012-06-11 03:13:20 -07:00
Maxwell Salzberg
b124d3e5a1
Revert "update factory girl" new version does not support 1.8.7 :(
...
This reverts commit c52342b7cb .
2012-05-16 17:43:56 -07:00
Maxwell Salzberg
c52342b7cb
update factory girl
2012-05-16 17:17:14 -07:00
Dennis Collinson
9769dfb303
cukes passing
2012-02-23 17:24:19 -08:00
Florian Staudacher
cab953848f
added tests for photos page
2012-02-09 23:12:39 +01:00
danielgrippi
a3e13e3c0e
User#like! method.
2012-02-03 14:42:03 -08:00
Maxwell Salzberg
c69df0fb29
fix photos controller test
2012-01-27 13:06:27 -08:00
Jonne Haß
e1658f8d8b
switch PhotosController#index over to guid, fix #2729
2012-01-25 12:45:02 +01:00
Jonne Haß
7aaaf4f43b
use guid instead of id for /people/ urls
2012-01-23 23:35:31 +01:00
Maxwell Salzberg
49f18d435a
upgrade factory girl there are 3 failing cukes.
2012-01-21 21:58:50 -08:00
Jonne Hass
b3142ac208
redirect to sign in page from photo#show on a private photo when user isn't signed in
2011-11-10 22:44:12 +01:00
Pistos
39f876824a
Specify a fixture path relative to Rails.root to appease the Travis.
2011-11-07 00:32:18 -05:00
Pistos
02fa065571
Whitespace cleanup.
2011-11-07 00:32:17 -05:00
Pistos
14842c1b43
Merge remote-tracking branch 'johnedmonds/issue1144'
2011-11-06 22:21:53 -05:00
Jonne Hass
7556dccb91
test that photosController#index succeeds without any photos
2011-11-06 14:47:28 +01:00
Sarah Mei
f9a9654c86
Allow non-logged-in users to see public photos
2011-11-03 22:07:48 -07:00
John Edmonds
19ea9e8b6d
Add tests for Content-Type returned from #create.
2011-10-01 11:48:41 -04:00
John Edmonds
dcd7e936df
Add test for Opera photo upload.
2011-09-29 21:24:00 -04:00
danielgrippi
91e649977c
MS DG update copyright
2011-09-14 11:23:12 -07:00
Raphael Sofaer
be5453f0b4
Fix photo show pages with likes
2011-08-02 10:17:49 -07:00
Jakob Kramer
4b9c8487e6
test for issue #1602 's fix; typos
2011-08-01 20:12:30 +02:00
Raphael Sofaer
af6547815e
Some view helper cleanup
2011-07-04 07:36:01 -07:00
Maxwell Salzberg
41e8a32b28
tests for data methods
2011-06-16 15:47:16 -07:00
Arzumy MD
3767cce149
moved render_views out of controller specs to spec_helper.
...
cleaned up indentation and spacing in controller specs.
2011-05-07 18:38:40 +08:00
Raphael Sofaer
fef226156c
Update controllers to use User#retract, change Relayable#relayable to Relayable#relayable?
2011-03-25 16:09:37 -07:00