discourse/spec
Michael Brown 9026c55fe4
FIX: custom SQL with a trailing comment might break BadgeGranter SQL (#9285)
For example given a custom badge with SQL:
```
SELECT 1
-- I am a comment
```

You end up with

```
FROM (SELECT 1
-- I am a comment) q
```

This fix adds newlines so you end up with the now-valid:

```
FROM (
  SELECT 1
-- I am a comment
) q
```
2020-03-27 14:16:14 -04:00
..
components FIX: Perform crop using user-specified image sizes (#9224) 2020-03-26 16:40:00 +02:00
fabricators FIX: Perform crop using user-specified image sizes (#9224) 2020-03-26 16:40:00 +02:00
fixtures FIX: Bulk badge awards should work even if the CSV has nil values 2020-02-27 11:08:24 -03:00
helpers FIX: blank popular posts in summary emails due to lightbox images 2020-02-21 16:18:38 -05:00
import_export FIX: Import sub-sub-categories (#8810) 2020-01-30 18:46:33 +02:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration FIX: Allow CSP to work correctly for non-default hostnames/schemes (#9180) 2020-03-19 19:54:42 +00:00
integrity DEV: Improve flaky time-sensitive specs (#9141) 2020-03-10 22:13:17 +01:00
jobs FIX: Change secure media to encompass attachments as well (#9271) 2020-03-26 07:16:02 +10:00
lib DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
mailers DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
models DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
multisite FIX: Change secure media to encompass attachments as well (#9271) 2020-03-26 07:16:02 +10:00
requests FEATURE: invite_code is case-insensitive 2020-03-26 13:44:02 +11:00
serializers DEV: Update rubocop-discourse (#9270) 2020-03-26 16:32:41 +01:00
services FIX: custom SQL with a trailing comment might break BadgeGranter SQL (#9285) 2020-03-27 14:16:14 -04:00
support DEV: Fix flaky time sensitive uploads.rake specs (#9283) 2020-03-26 13:31:39 +10:00
tasks DEV: Fix flaky time sensitive uploads.rake specs (#9283) 2020-03-26 13:31:39 +10:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Update rubocop-discourse (#9270) 2020-03-26 16:32:41 +01:00