Sha256: 8c54402c45f401965afcfe95f2561891efab280823dfe6393a8a992b7d30acea
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 Bytes
Contents
require 'rails/generators' module Docs module Generators class BuildDocsGenerator < Rails::Generators::Base ENV['RAILS_ENV'] = 'test' source_root File.expand_path("../../../templates/", __FILE__) def build_docs destination = "spec/spec_helper.rb" if File.exist?(destination) uncomment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/) `rspec spec` comment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/) else puts "Could not find spec/spec_helper.rb" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems