Skip to content

Commit

Permalink
rubocop: fix RSpec/ImplicitExpect
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Nov 2, 2016
1 parent 4dec557 commit 51a6f66
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/classes/graphite_powershell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
}
end

it { should contain_class('graphite_powershell::params') }
it { should contain_class('graphite_powershell::config').that_comes_before('Class[graphite_powershell::install]') }
it { should contain_class('graphite_powershell::install').that_comes_before('Class[graphite_powershell::service]') }
it { should contain_class('graphite_powershell::service') }
it { is_expected.to contain_class('graphite_powershell::params') }
it { is_expected.to contain_class('graphite_powershell::config').that_comes_before('Class[graphite_powershell::install]') }
it { is_expected.to contain_class('graphite_powershell::install').that_comes_before('Class[graphite_powershell::service]') }
it { is_expected.to contain_class('graphite_powershell::service') }

it { should contain_service('GraphitePowerShell').that_subscribes_to('File[C:/GraphitePowershell/StatsToGraphiteConfig.xml]') }
it { is_expected.to contain_service('GraphitePowerShell').that_subscribes_to('File[C:/GraphitePowershell/StatsToGraphiteConfig.xml]') }

it { should contain_file('C:/GraphitePowershell/Graphite-PowerShell.ps1').with_ensure('present') }
it { is_expected.to contain_file('C:/GraphitePowershell/Graphite-PowerShell.ps1').with_ensure('present') }

it { should contain_file('C:/GraphitePowershell/StatsToGraphiteConfig.xml').with_ensure('present') }
it { is_expected.to contain_file('C:/GraphitePowershell/StatsToGraphiteConfig.xml').with_ensure('present') }
end
end
end
Expand All @@ -45,7 +45,7 @@
}
end

it { expect { should contain_file('C:/GraphitePowershell/StatsToGraphiteConfig.xml') }.to raise_error(Puppet::Error, %r{Debian not supported}) }
it { expect { is_expected.to contain_file('C:/GraphitePowershell/StatsToGraphiteConfig.xml') }.to raise_error(Puppet::Error, %r{Debian not supported}) }
end
end
end

0 comments on commit 51a6f66

Please sign in to comment.