Replace user_blocks fixture with a factory.

Traits are used here to make the tests easier to read, and the
different traits can be combined where necessary.
This commit is contained in:
Andy Allan 2016-10-19 10:57:40 +01:00
parent 23c79ba2a3
commit 23c3168c55
8 changed files with 97 additions and 71 deletions

View file

@ -13,7 +13,7 @@ module ActiveSupport
# Load standard fixtures needed to test API methods
def self.api_fixtures
# print "setting up the api_fixtures"
fixtures :users, :user_roles, :user_blocks
fixtures :users, :user_roles
fixtures :changesets, :changeset_tags
fixtures :current_nodes, :nodes