File: view_assigns_controller.rb

package info (click to toggle)
ruby-rails-controller-testing 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,016 kB
  • sloc: ruby: 646; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 161 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
class ViewAssignsController < ActionController::Base
  def test_assigns
    @foo = "foo"
    head :ok
  end

  def view_assigns
    { "bar" => "bar" }
  end
end