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:
Adam Spiers
2014-03-22 14:10:36 +00:00
parent c0e3907ba0
commit b44879112e
5 changed files with 0 additions and 20 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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