0
私はレール"テスト "ケースではじめてです。練習目的のために、私はどこに保存されたオブジェクトが有効かどうかをチェックしている1つのテストケースをwrittin持っています。このテストケースを実行した後、私はNoMethodError: undefined method create for ArticleTest:Class
というエラーになります。私はhttp://guides.rubyonrails.org/testing.htmlrails 4テストケース:NoMethodError:未定義メソッドArticleTestのための `create ':クラス
require 'test_helper'
class ArticleTest < ActiveSupport::TestCase
test "the truth" do
@article = ArticleTest.create
assert @article.valid?
end
end
私のコードで何が間違っているガイドレールを次のでしょうか?