Add a test case for the scope enum adds

This commit is contained in:
David Heinemeier Hansson 2013-11-02 16:18:31 -07:00
parent e94e97ca79
commit 09447929a0

@ -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?