You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failures:
1) Ransack::Adapters::ActiveRecord::Context#build_correlated_subquery build correlated subquery for Root STI model
Failure/Error: expect(constraint.left.name).to eql 'person_id'
NoMethodError:
undefined method `name' for #<Arel::Nodes::Grouping:0x00007fdcb1510a78>
# ./spec/ransack/adapters/active_record/context_spec.rb:51:in `block (3 levels) in <module:ActiveRecord>'
2) Ransack::Adapters::ActiveRecord::Context#build_correlated_subquery build correlated subquery for Child STI model when predicate is not_eq
Failure/Error: expect(constraint.left.relation.name).to eql 'articles'
NoMethodError:
undefined method `relation' for #<Arel::Nodes::Grouping:0x00007fdcb14e7e98>
# ./spec/ransack/adapters/active_record/context_spec.rb:64:in `block (3 levels) in <module:ActiveRecord>'
3) Ransack::Adapters::ActiveRecord::Context#build_correlated_subquery build correlated subquery for Child STI model when predicate is eq
Failure/Error: expect(constraint.left.relation.name).to eql 'articles'
NoMethodError:
undefined method `relation' for #<Arel::Nodes::Grouping:0x00007fdcb14d7ef8>
# ./spec/ransack/adapters/active_record/context_spec.rb:77:in `block (3 levels) in <module:ActiveRecord>'
4) Ransack::Search#result use appropriate table alias
Failure/Error:
expect(real_query)
.to include "LEFT OUTER JOIN articles ON articles.person_id = people.id"
expected "SELECT people.* FROM people LEFT OUTER JOIN articles ON ('default_scope' = 'default_scope') AND arti...rent_name_query' AND articles_people.title = 'parents_article_title_query') ORDER BY people.id DESC" to include "LEFT OUTER JOIN articles ON articles.person_id = people.id"
# ./spec/ransack/search_spec.rb:240:in `block (3 levels) in <module:Ransack>'
Finished in 1.69 seconds (files took 1.11 seconds to load)
350 examples, 4 failures
Failed examples:
rspec ./spec/ransack/adapters/active_record/context_spec.rb:44 # Ransack::Adapters::ActiveRecord::Context#build_correlated_subquery build correlated subquery for Root STI model
rspec ./spec/ransack/adapters/active_record/context_spec.rb:57 # Ransack::Adapters::ActiveRecord::Context#build_correlated_subquery build correlated subquery for Child STI model when predicate is not_eq
It seems the 5.2 tests are allowed to fail in Travis. This should be corrected ... I will look into it.
The text was updated successfully, but these errors were encountered:
Tests are failing when run on local machine.
It seems the 5.2 tests are allowed to fail in Travis. This should be corrected ... I will look into it.
The text was updated successfully, but these errors were encountered: