Ruby on Rails Friday, July 14, 2017


On Friday, July 14, 2017 at 9:58:56 AM UTC+1, Ralph Shnelvar wrote:
So is it deprecated?  What's it replaced by?  Where can I find documentation? 


apidock things things are deprecated when they move - it doesn't know it was extracted into the rails-dom-testing gem 


I find
no mention of assert_select in http://rspec.info/documentation/3.6/rspec-rails/


The rails specific assertions aren't part of rspec-rails (you can still use them because rspec-rails wraps the rails testing facilities). ALthough rspec doesn't really care what assertion library you use, I've more commonly seen people use the capybara rspec matches in such cases (expect(rendered).to have_css('tr>td', count: 2, ...)

Fred
 
I find assert_select defined in ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-dom-testing-2.0.3/lib/rails/dom/testing/assertions/selector_assertions.rb .

What am I not understanding?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0866b6c7-f28d-4cca-a273-53ba8f97d84d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment