docbrown/spec
Omar Bahareth 41463a7264 Deduplicate giphy_img? function and add tests (#4590)
* De-duplicate giphy_img? function in favor of a tested service.
Add a tested `GiphyService` and move `giphy_img?` function to it.
Make `labor/markdown_parser.rb` and `models/html_variant.rb` use the service version of the function.

* Refactor GiphyService into Giphy::Image class
Based on comments from @rhymes, I've changed this into a `Giphy::Image` class sincethe repo is currently being moved away from `XYZService` objects for namespacing and organization purposes.

* Fix typo

Update describe case to mention the current method name.
2019-10-30 11:40:17 -04:00
..
black_box Update feed to have popular post stick around less (#4413) 2019-10-14 12:34:11 -04:00
decorators Display comment published timestamp according to user's locale (#1970) 2019-03-08 15:19:37 -05:00
factories New Feature: Block Users (#4411) 2019-10-23 17:14:28 -04:00
fixtures Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
helpers Refactor ArticleHelper#get_host_without_www (#4558) [ci skip] 2019-10-23 14:36:32 -04:00
jobs Add ChatChannels::IndexingJob (#4317) [ci skip] 2019-10-15 16:13:10 -04:00
labor Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
lib Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
liquid_tags Add post as an alias to the link liquid tag (#4353) 2019-10-11 08:46:02 -04:00
mailers Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
models Routine rubocop lint fixes (#4638) [ci skip] 2019-10-30 10:46:57 -04:00
observers Remove unused spec support BackgroundJobs (#4464) [ci skip] 2019-10-24 16:49:45 -04:00
policies Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
requests Add some html to internal articles and new internal view (#4636) 2019-10-28 19:09:24 -04:00
routing Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
services Deduplicate giphy_img? function and add tests (#4590) 2019-10-30 11:40:17 -04:00
support Remove unused spec support BackgroundJobs (#4464) [ci skip] 2019-10-24 16:49:45 -04:00
system Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
uploaders Strip EXIF and GPS data from uploaded images (#4450) 2019-10-24 16:35:10 -04:00
views Improve test speed (#3957) [ci skip] 2019-09-12 16:17:20 -04:00
rails_helper.rb Update core API endpoints to support access_token (#3644) 2019-08-08 15:55:23 -03:00
spec_helper.rb Temporarily comment out random (#2486) 2019-04-18 11:56:38 -04:00