Sha256: 5d417f5f3b76baf8f4c32b676114abe2dc452323fd50d172c8069b707ce82fcd
Contents?: true
Size: 513 Bytes
Versions: 41
Compression:
Stored size: 513 Bytes
Contents
require 'rails/generators/base' require 'rspec/rails/version' module Clearance module Generators class SpecsGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def create_specs @helper_file = rspec_helper_file directory '.', 'spec' end private def rspec_helper_file if RSpec::Rails::Version::STRING.to_i > 2 "rails_helper" else "spec_helper" end end end end end
Version data entries
41 entries across 41 versions & 1 rubygems