tests: fix unit tests.

* Move old post archive tests to post version tests.

* Fix pool tests that assumed that multiple edits by the same user
  weren't merged.

* Fix references to `is_active` and `notes` on artist model.
This commit is contained in:
evazion
2020-03-21 16:47:50 -05:00
parent 94ae10b1a6
commit 3656063a6b
16 changed files with 134 additions and 279 deletions

View File

@@ -37,8 +37,8 @@ class PoolVersionsControllerTest < ActionDispatch::IntegrationTest
context "diff action" do
should "render" do
@post = create(:post)
@pool = as (@user) { create(:pool) }
@post = as(@user) { create(:post) }
@pool = as(@user) { create(:pool) }
as (@user) { @pool.update(name: "blah", description: "desc", post_ids: [@post.id]) }
get diff_pool_version_path(@pool.versions.last.id)