8000 GitHub - moser/stub_render: Stubs view rendering to facilitate controller unit testing.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

moser/stub_render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stub render

Stubs Rails’ view rendering. Views or partials will not be evaluated, but all parameters of the response (status, rendered) will be set like they would be without stubbing. Missing views/partials will generate an error.

Installation

./script/plugin install git://github.com/moser/stub_render.git

Usage

class MyTest < ActionController::TestCase
  test SomeController

  def setup
    #...
    @controller.stub_render = true
  end
end

TODO

Only load the plugin in test environment.

About

Stubs view rendering to facilitate controller unit testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0