Skip to content

Commit

Permalink
[ci] Ignore attrib_types and attrib_namespaces tables when truncating…
Browse files Browse the repository at this point in the history
… for RSpec tests
  • Loading branch information
Moises Deniz Aleman committed Feb 24, 2016
1 parent 4504dd5 commit 4305bad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/spec/support/database_cleaner.rb
Expand Up @@ -19,7 +19,9 @@
# the same server thread.
if example.metadata[:type] == :feature
# omit truncating what we have set up in db/seeds.rb
DatabaseCleaner.strategy = :truncation, {:except => %w(roles roles_static_permissions static_permissions configurations architectures)}
DatabaseCleaner.strategy = :truncation, { :except => %w(roles roles_static_permissions
static_permissions configurations
architectures attrib_types attrib_namespaces) }
else
DatabaseCleaner.strategy = :transaction
end
Expand Down

0 comments on commit 4305bad

Please sign in to comment.