Sha256: 5edc273cdd34136d503cc982b861d40206fe645ff6619ed6ec6579995d7850df
Contents?: true
Size: 509 Bytes
Versions: 20
Compression:
Stored size: 509 Bytes
Contents
require 'generators/rspec' module Rspec module Generators # @private class SystemGenerator < Base class_option :system_specs, type: :boolean, default: true, desc: "Generate system specs" def generate_system_spec return unless options[:system_specs] template template_name, target_path('system', class_path, filename) end def template_name 'system_spec.rb' end def filename "#{table_name}_spec.rb" end end end end
Version data entries
20 entries across 19 versions & 4 rubygems