lib/henry/task/rspec_task.rb in henry-container-0.0.38 vs lib/henry/task/rspec_task.rb in henry-container-0.0.39

- old
+ new

@@ -30,11 +30,16 @@ def configure(params) File.open('rspec.out', 'w') { |f| } # Makes available the spec rake task. RSpec::Core::RakeTask.new do |t| - t.pattern = (self.data.options && self.data.options['pattern']) || 'spec/*' - t.rspec_opts = '--out rspec.out' + if self.data.options + t.pattern = self.data.options['pattern'] || 'spec/*' + t.rspec_opts = "--out rspec.out --format #{self.data.options['format'] || 'documentation'}" + else + t.pattern = 'spec/*' + t.rspec_opts = '--out rspec.out' + end end self.export_params(params) end