Sha256: da63eff591998e33cbbbef2823dbd2253ef263bf03ba08a5bfbdcd63b291c2b6
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
class <%= pluralize camelize(name) %>ControllerTest < FunctionalTestCase def setup <%= module_name %>::<%= camelize name %>.delete_all end def test_get_<%= name %>_by_id <%= name %> = <%= camelize name %>Factory.post get "/<%= pluralize name %>/#{<%= name %>._id}" assert_equal 200, last_response.status end def test_get_<%= pluralize name %> 3.times { <%= camelize name %>Factory.post } get "/<%= pluralize name %>" assert_equal 200, last_response.status end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apimaster-0.0.3 | lib/apimaster/generators/templates/test/functional/examples_controller_test.rb.erb |