I think that boolean tests should look like in https://github.com/rspec/rspec-expectations#truthiness , so `expect(ifcfg =~ /foo/).to be_truthy`