藤澤といいます。
Railsの再インストールをRubyごと行ったところ、
1)プロジェクト作成
2)テーブル作成
3)作成したテーブルに対してscaffold
4)コマンドプロンプトで「rake」を入力
rakeでテストを行ったところ、8つのエラーが
出てしまって困り果てています。
どなたか分かる方がいらっしゃったらご教示下さい。
1)
Error:
test_create(SchedulesControllerTest):
StandardError: No fixture
with name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
2)
Error:
test_destroy(SchedulesControllerTest):
StandardError: No fixture
with name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
3)
Error:
test_edit(SchedulesControllerTest):
StandardError: No fixture with
name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
4)
Error:
test_index(SchedulesControllerTest):
StandardError: No fixture with
name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
5)
Error:
test_list(SchedulesControllerTest):
StandardError: No fixture with
name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
6)
Error:
test_new(SchedulesControllerTest):
StandardError: No fixture with
name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
7)
Error:
test_show(SchedulesControllerTest):
StandardError: No fixture with
name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
8)
Error:
test_update(SchedulesControllerTest):
StandardError: No fixture
with name 'first' found for table 'schedules'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:503:in
`schedules'
./test/functional/schedules_controller_test.rb:15:in
`setup_without_fixtures
'
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/fixture
s.rb:576:in
`setup'
8 tests, 0 assertions, 0
failures, 8 errors
C:/ruby/bin/ruby -Ilib;test
"C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb"