Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dchelimsky/524607 to your computer and use it in GitHub Desktop.
Save dchelimsky/524607 to your computer and use it in GitHub Desktop.
class ClassProjectsController < ApplicationController
def new
end
end
require 'test_helper'
class ClassProjectsControllerTest < ActionController::TestCase
test "GET new should render the new template" do
get new_class_project_path
assert_template "new"
end
end
$ rake
(in /Users/dchelimsky/tmp/foo)
/Users/dchelimsky/.rvm/rubies/ruby-1.8.7-p299/bin/ruby -I"lib:test" "/Users/dchelimsky/.rvm/gems/ruby-1.8.7-p299@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/helpers/class_projects_helper_test.rb"
Loaded suite /Users/dchelimsky/.rvm/gems/ruby-1.8.7-p299@global/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
Finished in 0.000235 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
/Users/dchelimsky/.rvm/rubies/ruby-1.8.7-p299/bin/ruby -I"lib:test" "/Users/dchelimsky/.rvm/gems/ruby-1.8.7-p299@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/class_projects_controller_test.rb"
Loaded suite /Users/dchelimsky/.rvm/gems/ruby-1.8.7-p299@global/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
E
Finished in 0.01398 seconds.
1) Error:
test_GET_new_should_render_the_new_template(ClassProjectsControllerTest):
ActionController::UnknownAction: No action responded to /class_projects/new. Actions: new
/test/functional/class_projects_controller_test.rb:5:in `test_GET_new_should_render_the_new_template'
1 tests, 0 assertions, 0 failures, 1 errors
/Users/dchelimsky/.rvm/rubies/ruby-1.8.7-p299/bin/ruby -I"lib:test" "/Users/dchelimsky/.rvm/gems/ruby-1.8.7-p299@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
Errors running test:functionals!
ActionController::Routing::Routes.draw do |map|
map.resources :class_projects
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
@bmsolutions
Copy link

Thank you for your help, I will definitely follow up with the rails team and see what I do to help solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment