Hi
I use the ci_reporter gem for builds on my CI machine (hudson).
Prior to rspec 2.4, environment options would override commandline
options. So the gem used this to change the formatter and require its
files.
In 2.4, that order has been reversed.
the thing is 2.4 supports multiple formatters, so there is another suggestion.
RSpec::Core::ConfigurationOptions
def parse_options
@options = begin
options_to_merge = []
if custom_options_file
options_to_merge << custom_options
else
options_to_merge << global_options
options_to_merge << local_options
end
options_to_merge << env_options
options_to_merge << command_line_options
options_to_merge.inject do |merged, options|
merged.merge(options)
end
end
end
the last section, instead of merging hashes, could combine the values
of all hashes with the keys "--require" or "--format". So you get the
default formatter and the extra formatter that ci_reporter introduces.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users