diff --git a/recipes/chef.rb b/recipes/chef.rb index 69a6a29..1f867d6 100644 --- a/recipes/chef.rb +++ b/recipes/chef.rb @@ -29,4 +29,4 @@ append_if_no_line 'add KITCHEN_LOCAL_YAML to global .bashrc' do path '/etc/bash.bashrc' line 'export KITCHEN_LOCAL_YAML=.kitchen.dokken.yml' -end \ No newline at end of file +end diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb index 24fdab3..efd36c5 100644 --- a/spec/unit/recipes/default_spec.rb +++ b/spec/unit/recipes/default_spec.rb @@ -51,7 +51,6 @@ expect(chef_run).to does_append_if_no_line('add USE_DOKKEN to global .bashrc') end - it 'will add KITCHEN_LOCAL_YAML env variable to all users with .bashrc file' do expect(chef_run).to does_append_if_no_line('add KITCHEN_LOCAL_YAML to global .bashrc') end diff --git a/test/smoke/default/chef_spec.rb b/test/smoke/default/chef_spec.rb index 1842c6b..f194272 100644 --- a/test/smoke/default/chef_spec.rb +++ b/test/smoke/default/chef_spec.rb @@ -36,7 +36,7 @@ it { should exist } its('content') { should match(Regexp.new(Regexp.quote('export USE_DOKKEN=true'))) } end - + describe file('/etc/bash.bashrc') do it { should exist } its('content') { should match(Regexp.new(Regexp.quote('export KITCHEN_LOCAL_YAML=.kitchen.dokken.yml'))) }