I do the tutorial of Michael Hartl on Ruby on Rails. (Chapter 3.3.2)
Two test for testing the home page and the help page were already generated by rails.
I add the following to my code and get an error like expected.
test "should get about" do
get static_pages_about_url
assert_response :success
end
The Next step is adding this line to the routes file.
get 'static_pages/about'
But then I get an error which mentions the get home test, which was working before.
Error:
StaticPagesControllerTest#test_should_get_home:
ActionView::Template::Error: Permission denied @ rb_file_s_rename - (C:/Users/NCH-Lap10/Desktop/rubyprojects/sample_app/tmp/cache/assets/sprockets/v4.0.0/UJ/UJUHpaWHxh-dka7CVvsgGqvURvaOqYonjpkAmKgWoGM.cache.14900.18496.82620, C:/Users/NCH-Lap10/Desktop/rubyprojects/sample_app/tmp/cache/assets/sprockets/v4.0.0/UJ/UJUHpaWHxh-dka7CVvsgGqvURvaOqYonjpkAmKgWoGM.cache)
app/views/layouts/application.html.erb:9
test/controllers/static_pages_controller_test.rb:5:in `block in <class:StaticPagesControllerTest>'
Should I provide more information?
Aucun commentaire:
Enregistrer un commentaire