瀏覽代碼

test(inspec): add test to check `.vimrc` file is generated properly

tags/v0.48.4
Felipe Zipitria 5 年之前
父節點
當前提交
569e9276db
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. +11
    -0
      test/integration/vimrc/controls/config_spec.rb

+ 11
- 0
test/integration/vimrc/controls/config_spec.rb 查看文件

@@ -0,0 +1,11 @@
# frozen_string_literal: true

control 'vimrc is managed' do
title 'formula should manage .vimrc'

describe file('/home/vim_user/.vimrc') do
it { should be_owned_by 'vim_user' }
its('mode') { should cmp '0644' }
its('content') { should match(/syntax on/) }
end
end

Loading…
取消
儲存