Sha256: ced2ebf7097221bb95c13aaba56741aea99a77550670f230d1113b785f8ce122
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 Bytes
Contents
module Motion; module Project class Config alias :original_spec_files :spec_files def spec_files red_green_style_config_file = File.expand_path(redgreen_style_config) return original_spec_files if original_spec_files.include? red_green_style_config_file index = original_spec_files.find_index do |file| file.include? "/lib/motion/spec.rb" end original_spec_files.insert(index + 1, *[ red_green_style_config_file, File.expand_path(File.dirname(__FILE__) + '/spec_setup.rb') ]) end attr_accessor :redgreen_style def redgreen_style_config config_file = File.join(build_dir, 'redgreen_style_config.rb') @redgreen_style ||= :focused f = open(config_file, 'wb') f.write("$RedGreenStyleFormat = :#{@redgreen_style}\n") f.close config_file end end end ; end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-redgreen-1.0.0 | lib/motion-redgreen/config.rb |
motion-redgreen-0.1.0 | lib/motion-redgreen/config.rb |