提交 09447929 编写于 作者: D David Heinemeier Hansson

Add a test case for the scope enum adds

上级 e94e97ca
......@@ -18,6 +18,10 @@ class StoreTest < ActiveRecord::TestCase
assert_equal :proposed, @book.status
end
test "find via scope" do
assert_equal @book, Book.proposed.first
end
test "update by declaration" do
@book.written!
assert @book.written?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册