spec/unit/plugins/linux/mdadm_spec.rb in ohai-14.15.0 vs spec/unit/plugins/linux/mdadm_spec.rb in ohai-15.0.35
- old
+ new
@@ -14,11 +14,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require "spec_helper"
describe Ohai::System, "Linux Mdadm Plugin" do
before(:each) do
@md0 = <<~MD
/dev/md0:
@@ -50,10 +50,10 @@
1 8 48 1 active sync /dev/sdd
2 8 64 2 active sync /dev/sde
3 8 80 3 active sync /dev/sdf
4 8 96 4 active sync /dev/sdg
5 8 112 5 active sync /dev/sdh
-MD
+ MD
@plugin = get_plugin("linux/mdadm")
allow(@plugin).to receive(:collect_os).and_return(:linux)
@double_file = double("/proc/mdstat")
allow(@double_file).to receive(:each)
.and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]")