rodjek/rspec-puppet — pull request #170 by mhuffnagle (2014-02-13 14:52:17+00:00)
Title: "rake rspec" fails when spec/spec.opts does not exist

After running ```rspec-puppet-init```, I'm getting this failure:
```
$ bundle exec rake rspec
rake aborted!
No such file or directory - spec/spec.opts
/home/me/my_module/Rakefile:6:in `read'
/home/me/my_module/Rakefile:6:in `block in '
/home/me/.gem/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/rake_task.rb:122:in `call'
/home/me/.gem/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/rake_task.rb:122:in `block (2 levels) in initialize'
/home/me/.gem/ruby/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/rake_task.rb:121:in `block in initialize'
Tasks: TOP => rspec
(See full trace by running task with --trace)
```

The problem is on line 140 of lib/rspec-puppet/setup.rb. It's expecting ```File.read("spec/spec.opts")``` to return false if the file does not exist, but that actually raises an exception.

```
[1] pry(main)> File.read('/does/not/exist')
Errno::ENOENT: No such file or directory - /does/not/exist
from (pry):1:in `read'
```