Sha256: 6cc89c1508bfe2a43ba43c7346ffe3ff47a5b74caf281dc059026ed2b942f812
Contents?: true
Size: 348 Bytes
Versions: 3
Compression:
Stored size: 348 Bytes
Contents
module Rspec class ContextGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_spec_file template( 'context_spec.rb', File.join( 'spec/contexts', class_path, "#{singular_name}_context_spec.rb" ) ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dicer-0.3.0 | lib/generators/rspec/context_generator.rb |
dicer-0.2.0 | lib/generators/rspec/context_generator.rb |
dicer-0.1.0 | lib/generators/rspec/context_generator.rb |