diff options
author | Jeff McCune <jeff@puppetlabs.com> | 2013-02-06 08:14:08 -0800 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2013-02-06 08:14:08 -0800 |
commit | 8dd82d318a05c5e35bd2d8853fce8b8bf1b2c2d0 (patch) | |
tree | f630123d27c32d4947e853b82bc39a2909c6195a /spec/unit/puppet/type/file_line_spec.rb | |
parent | 4d24bd33b038aaf261342641e14fdced1371fe8d (diff) | |
parent | 5f22933e75058310af06a993d663be2da7759c3d (diff) |
Merge branch 'stephenrjohnson-bug/master/15572_rspec_tests'
* stephenrjohnson-bug/master/15572_rspec_tests:
ammend .should raise_error to .to raise_error
closes #97
Diffstat (limited to 'spec/unit/puppet/type/file_line_spec.rb')
-rw-r--r-- | spec/unit/puppet/type/file_line_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/puppet/type/file_line_spec.rb b/spec/unit/puppet/type/file_line_spec.rb index 0cd8a26..edc64bd 100644 --- a/spec/unit/puppet/type/file_line_spec.rb +++ b/spec/unit/puppet/type/file_line_spec.rb @@ -37,13 +37,13 @@ describe Puppet::Type.type(:file_line) do file_line[:path].should == '/tmp/path' end it 'should not accept unqualified path' do - expect { file_line[:path] = 'file' }.should raise_error(Puppet::Error, /File paths must be fully qualified/) + expect { file_line[:path] = 'file' }.to raise_error(Puppet::Error, /File paths must be fully qualified/) end it 'should require that a line is specified' do - expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => '/tmp/file') }.should raise_error(Puppet::Error, /Both line and path are required attributes/) + expect { Puppet::Type.type(:file_line).new(:name => 'foo', :path => '/tmp/file') }.to raise_error(Puppet::Error, /Both line and path are required attributes/) end it 'should require that a file is specified' do - expect { Puppet::Type.type(:file_line).new(:name => 'foo', :line => 'path') }.should raise_error(Puppet::Error, /Both line and path are required attributes/) + expect { Puppet::Type.type(:file_line).new(:name => 'foo', :line => 'path') }.to raise_error(Puppet::Error, /Both line and path are required attributes/) end it 'should default to ensure => present' do file_line[:ensure].should eq :present |