docbrown/spec/services/articles
Jeremy Friesen 43a9c5f2f0
Fixing variant query specs (#17597)
* Fixing variant query specs

As I was working on adding a new variant, I discovered that not all of
our variants were being tested.  This had to do with a faulty assumption
regarding the scoping of the `variant` local variable.

The change ensures that we declare a subject once for each defined
variant within their own `describe` block.  Without that `describe`
block, you end up repurposing the same subject.

I found this because I made a deliberate error in the upcoming variant
and checked the tests.  They passed.

Related to forem/forem#17584

* Update spec/services/articles/feeds/variant_query_spec.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Update spec/services/articles/feeds/variant_query_spec.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
2022-05-09 13:20:34 -04:00
..
feeds Fixing variant query specs (#17597) 2022-05-09 13:20:34 -04:00
attributes_spec.rb Routine Rubocop fixes (#16838) 2022-03-09 09:32:50 -05:00
builder_spec.rb Update builder spec variable names (#17302) 2022-04-15 09:44:14 -05:00
creator_spec.rb Remove webhooks and related code (#15827) 2021-12-28 10:56:37 +07:00
destroyer_spec.rb Remove webhooks and related code (#15827) 2021-12-28 10:56:37 +07:00
enrich_image_attributes_spec.rb Stop disabling webmock in test, update vcr cassette to match test (#16832) 2022-03-09 08:03:24 -06:00
feeds_spec.rb Fixing blank home page for anonymous/visitor (#15665) 2021-12-03 08:32:02 -05:00
page_view_updater_spec.rb Ensuring we don't track views of author or unpublished (#16143) 2022-01-18 11:23:18 -05:00
suggest_spec.rb Fix app/services' ruby 2.7 kwargs warnings (#13177) 2021-04-01 18:40:50 -04:00
suggest_stickies_spec.rb Refactoring and documenting class (#15849) 2022-01-03 09:30:41 -05:00
updater_spec.rb Context Notifications (#17243) 2022-04-18 10:30:30 +03:00