Assigns in Ruby on Rails — How you can test instance variables in views and controllers
Too Long; Didn't Read
<a href="https://rubyonrails.org/">Ruby on Rails</a> has special helper methods that allow you to test instance variables in your app’s <a href="http://guides.rubyonrails.org/action_view_overview.html">views</a> and <a href="http://guides.rubyonrails.org/action_controller_overview.html">controllers</a>. These are assign and assigns, which stores a hash of the instance variables you can access in your <a href="http://rspec.info/">RSpec</a> tests.