Add a test case for the scope enum adds
This commit is contained in:
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?
|
||||
|
Loading…
Reference in New Issue
Block a user