I am working with Agile Web Development Book. I create complete app but when I am trying to test my first unit testing. Its showing following error. 1) Error: test_truth(ProductTest): Errno::ENOENT: No such file or directory - rails.png C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:814:in `readlines'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:814:in `read_fixture_file'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:768:in `initialize'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:712:in `new'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:712:in `read_yaml_fixture_files'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:707:in `each'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:707:in `read_yaml_fixture_files'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:706:in `each'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:706:in `read_yaml_fixture_files'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:676:in `read_fixture_files'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:549:in `initialize'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:509:in `new'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:509:in `create_fixtures'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:508:in `map'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:508:in `create_fixtures'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/connection_adapters/mysql_adapter.rb:234:in `disable_referential _integrity'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:505:in `create_fixtures'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/base.rb:1198:in `silence'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:504:in `create_fixtures'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:1000:in `load_fixtures'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li b/active_record/fixtures.rb:934:in `setup'' 1 tests, 0 assertions, 0 failures, 1 errors Please help me out. Your inputs and suggestions are welcome. Thanks Amir -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I stuck in the problem when, I am running performance test. Below is the error code. Errno::ENOENT: No such file or directory Please help me out. Thanks Amir -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 30 April 2012 13:28, Amir Z. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am working with Agile Web Development Book. I create complete app but > when I am trying to test my first unit testing. Its showing following > error. > > > 1) Error: > test_truth(ProductTest): > Errno::ENOENT: No such file or directory - rails.png > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:814:in `readlines'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:814:in `read_fixture_file'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:768:in `initialize'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:712:in `new'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:712:in `read_yaml_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:707:in `each'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:707:in `read_yaml_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:706:in `each'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:706:in `read_yaml_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:676:in `read_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:549:in `initialize'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:509:in `new'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:509:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:508:in `map'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:508:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/connection_adapters/mysql_adapter.rb:234:in > `disable_referential > _integrity'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:505:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/base.rb:1198:in `silence'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:504:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:1000:in `load_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:934:in `setup''For some reason it seems to be looking for a file rails.png while reading the fixtures files. I would start by moving away all your fixtures files to see if it is a problem in one of those. If the error goes away (you will get errors in your tests of course because of the missing fixtures, but at least it should start running the tests) then you can put them back to find which one is causing the problems. Also make sure you have no extra files in the fixtures directory. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It might not have anything to do with your problems but when I develop/ test in Windows I get the same type of error when the log files get big. The only thing I have to do to keep going is clear them up. On Apr 30, 8:28 am, "Amir Z." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am working with Agile Web Development Book. I create complete app but > when I am trying to test my first unit testing. Its showing following > error. > > 1) Error: > test_truth(ProductTest): > Errno::ENOENT: No such file or directory - rails.png > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:814:in `readlines'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:814:in `read_fixture_file'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:768:in `initialize'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:712:in `new'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:712:in `read_yaml_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:707:in `each'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:707:in `read_yaml_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:706:in `each'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:706:in `read_yaml_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:676:in `read_fixture_files'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:549:in `initialize'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:509:in `new'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:509:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:508:in `map'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:508:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/connection_adapters/mysql_adapter.rb:234:in > `disable_referential > _integrity'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:505:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/base.rb:1198:in `silence'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:504:in `create_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:1000:in `load_fixtures'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/li > b/active_record/fixtures.rb:934:in `setup'' > > 1 tests, 0 assertions, 0 failures, 1 errors > > Please help me out. Your inputs and suggestions are welcome. > > Thanks > Amir > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.