lib/henry/task/rspec_task.rb in henry-container-0.0.25 vs lib/henry/task/rspec_task.rb in henry-container-0.0.26
- old
+ new
@@ -17,12 +17,14 @@
# tail_pid = Process.spawn('tail -f rspec.out')
# Makes available the spec rake task.
RSpec::Core::RakeTask.new do |t|
- t.pattern = self.data['pattern'] || '*'
+ t.pattern = self.data.options.['pattern'] || '*'
t.rspec_opts = '--out rspec.out'
end
+
+ ENV['HENRY_INPUT'] = params
Rake.application['spec'].invoke
# Process.kill(:SIGINT, tail_pid)