Methods
A
L
N
R
V
Class Public methods
new()
# File actionview/lib/action_view/test_case.rb, line 124
def initialize
  @rendered_views ||= Hash.new { |hash, key| hash[key] = [] }
end
Instance Public methods
add(view, locals)
# File actionview/lib/action_view/test_case.rb, line 128
def add(view, locals)
  @rendered_views[view] ||= []
  @rendered_views[view] << locals
end
locals_for(view)
# File actionview/lib/action_view/test_case.rb, line 133
def locals_for(view)
  @rendered_views[view]
end
rendered_views()
# File actionview/lib/action_view/test_case.rb, line 137
def rendered_views
  @rendered_views.keys
end
view_rendered?(view, expected_locals)
# File actionview/lib/action_view/test_case.rb, line 141
def view_rendered?(view, expected_locals)
  locals_for(view).any? do |actual_locals|
    expected_locals.all? {|key, value| value == actual_locals[key] }
  end
end