Forked from bmsolutions/class_projects_controller.rb
Created
August 14, 2010 19:15
-
-
Save dchelimsky/524607 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassProjectsController < ApplicationController | |
def new | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionController::Routing::Routes.draw do |map| | |
map.resources :class_projects | |
map.connect ':controller/:action/:id' | |
map.connect ':controller/:action/:id.:format' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your help, I will definitely follow up with the rails team and see what I do to help solve this issue.