Skip to content

Commit 0944792

Browse files
author
David Heinemeier Hansson
committed
Add a test case for the scope enum adds
1 parent e94e97c commit 0944792

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

activerecord/test/cases/enum_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class StoreTest < ActiveRecord::TestCase
1818
assert_equal :proposed, @book.status
1919
end
2020

21+
test "find via scope" do
22+
assert_equal @book, Book.proposed.first
23+
end
24+
2125
test "update by declaration" do
2226
@book.written!
2327
assert @book.written?

0 commit comments

Comments
 (0)