Skip to content

Commit

Permalink
Add Reset for app_management test
Browse files Browse the repository at this point in the history
Reverting PuppetSynatx.app_management back to the default `false` value
after test execute.
  • Loading branch information
ipcrm committed Jan 25, 2017
1 parent aac22cc commit 4da620e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/puppet-syntax/manifests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
end

describe 'app_management' do
after do
PuppetSyntax.app_management = false
end

context 'app_management = false (default)' do
it 'should fail to parse an application manifest' do

Expand Down
1 change: 1 addition & 0 deletions spec/puppet-syntax_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
describe PuppetSyntax do
after do
PuppetSyntax.exclude_paths = []
PuppetSyntax.app_management = false
end

it 'should default exclude_paths to empty array' do
Expand Down

0 comments on commit 4da620e

Please sign in to comment.