Skip to content

Commit

Permalink
Fixes #14842 - Require database_cleaner manually
Browse files Browse the repository at this point in the history
  • Loading branch information
dLobatog committed Apr 27, 2016
1 parent 0a2d3a6 commit 32b5ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_plugin_helper.rb
@@ -1,7 +1,7 @@
# This calls the main test_helper in Foreman-core
require 'test_helper'

require 'dynflow/testing'
require 'database_cleaner'

# Add plugin to FactoryGirl's paths
FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
Expand Down
4 changes: 4 additions & 0 deletions test/unit/remote_execution_feature_test.rb
@@ -1,6 +1,10 @@
require 'test_plugin_helper'

describe RemoteExecutionFeature do
should validate_presence_of(:name)
should validate_presence_of(:label)
should validate_uniqueness_of(:name)
should validate_uniqueness_of(:label)

let(:install_feature) do
RemoteExecutionFeature.register(:katello_install_package, N_('Katello: Install package'),
Expand Down

0 comments on commit 32b5ba3

Please sign in to comment.