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
|
Chef::RSpec::Pacemaker::Config::COLOCATION_CONSTRAINT_DEFINITION
|
||||||
}
|
}
|
||||||
|
|
||||||
before(:each) do
|
|
||||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
|
||||||
end
|
|
||||||
|
|
||||||
def object_type
|
def object_type
|
||||||
'colocation'
|
'colocation'
|
||||||
end
|
end
|
||||||
|
@@ -12,10 +12,6 @@ describe Pacemaker::Constraint::Location do
|
|||||||
Chef::RSpec::Pacemaker::Config::LOCATION_CONSTRAINT_DEFINITION
|
Chef::RSpec::Pacemaker::Config::LOCATION_CONSTRAINT_DEFINITION
|
||||||
}
|
}
|
||||||
|
|
||||||
before(:each) do
|
|
||||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
|
||||||
end
|
|
||||||
|
|
||||||
def object_type
|
def object_type
|
||||||
'location'
|
'location'
|
||||||
end
|
end
|
||||||
|
@@ -12,10 +12,6 @@ describe Pacemaker::Resource::Clone do
|
|||||||
Chef::RSpec::Pacemaker::Config::CLONE_RESOURCE_DEFINITION
|
Chef::RSpec::Pacemaker::Config::CLONE_RESOURCE_DEFINITION
|
||||||
}
|
}
|
||||||
|
|
||||||
before(:each) do
|
|
||||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
|
||||||
end
|
|
||||||
|
|
||||||
def object_type
|
def object_type
|
||||||
'clone'
|
'clone'
|
||||||
end
|
end
|
||||||
|
@@ -13,10 +13,6 @@ describe Pacemaker::Resource::Group do
|
|||||||
Chef::RSpec::Pacemaker::Config::RESOURCE_GROUP_DEFINITION
|
Chef::RSpec::Pacemaker::Config::RESOURCE_GROUP_DEFINITION
|
||||||
}
|
}
|
||||||
|
|
||||||
before(:each) do
|
|
||||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
|
||||||
end
|
|
||||||
|
|
||||||
def object_type
|
def object_type
|
||||||
'group'
|
'group'
|
||||||
end
|
end
|
||||||
|
@@ -12,10 +12,6 @@ describe Pacemaker::Resource::MasterSlave do
|
|||||||
Chef::RSpec::Pacemaker::Config::MS_RESOURCE_DEFINITION
|
Chef::RSpec::Pacemaker::Config::MS_RESOURCE_DEFINITION
|
||||||
}
|
}
|
||||||
|
|
||||||
before(:each) do
|
|
||||||
Mixlib::ShellOut.any_instance.stub(:run_command)
|
|
||||||
end
|
|
||||||
|
|
||||||
def object_type
|
def object_type
|
||||||
'ms'
|
'ms'
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user