remove unnecessary stubs
If these are required across multiple spec files in the future, they should be refactored into a single shared_context.
This commit is contained in:
@@ -12,10 +12,6 @@ describe Pacemaker::Constraint::Colocation do
|
||||
Chef::RSpec::Pacemaker::Config::COLOCATION_CONSTRAINT_DEFINITION
|
||||
}
|
||||
|
||||
before(:each) do
|
||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
||||
end
|
||||
|
||||
def object_type
|
||||
'colocation'
|
||||
end
|
||||
|
@@ -12,10 +12,6 @@ describe Pacemaker::Constraint::Location do
|
||||
Chef::RSpec::Pacemaker::Config::LOCATION_CONSTRAINT_DEFINITION
|
||||
}
|
||||
|
||||
before(:each) do
|
||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
||||
end
|
||||
|
||||
def object_type
|
||||
'location'
|
||||
end
|
||||
|
@@ -12,10 +12,6 @@ describe Pacemaker::Resource::Clone do
|
||||
Chef::RSpec::Pacemaker::Config::CLONE_RESOURCE_DEFINITION
|
||||
}
|
||||
|
||||
before(:each) do
|
||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
||||
end
|
||||
|
||||
def object_type
|
||||
'clone'
|
||||
end
|
||||
|
@@ -13,10 +13,6 @@ describe Pacemaker::Resource::Group do
|
||||
Chef::RSpec::Pacemaker::Config::RESOURCE_GROUP_DEFINITION
|
||||
}
|
||||
|
||||
before(:each) do
|
||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
||||
end
|
||||
|
||||
def object_type
|
||||
'group'
|
||||
end
|
||||
|
@@ -12,10 +12,6 @@ describe Pacemaker::Resource::MasterSlave do
|
||||
Chef::RSpec::Pacemaker::Config::MS_RESOURCE_DEFINITION
|
||||
}
|
||||
|
||||
before(:each) do
|
||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
||||
end
|
||||
|
||||
def object_type
|
||||
'ms'
|
||||
end
|
||||
|
Reference in New Issue
Block a user