Sha256: badf93967e5f8ffd4199d3241ef300a1a798674bdddccd24bed70348830e4311
Contents?: true
Size: 594 Bytes
Versions: 11
Compression:
Stored size: 594 Bytes
Contents
module RSpec module Rails module ViewAssigns extend ActiveSupport::Concern module InstanceMethods # :call-seq: # assign(:widget, stub_model(Widget)) # # Assigns a value to an instance variable in the scope of the # view being rendered. def assign(key, value) _encapsulated_assigns[key] = value end private def _encapsulated_assigns @_encapsulated_assigns ||= {} end def _assigns super.merge(_encapsulated_assigns) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems