Method: RSpec::Rails::ViewAssigns#assign
- Defined in:
- lib/rspec/rails/view_assigns.rb
#assign(key, value) ⇒ Object
Assigns a value to an instance variable in the scope of the view being rendered.
11 12 13 |
# File 'lib/rspec/rails/view_assigns.rb', line 11 def assign(key, value) _encapsulated_assigns[key] = value end |