Sha256: 402f930a421d0346c6dde8f8a36b66504d1a8c6cec0ff7fb347f774adbe80f18

Contents?: true

Size: 324 Bytes

Versions: 7

Compression:

Stored size: 324 Bytes

Contents

require "rails/generators"

module Rspec
  # Generate SyncMachine files for RSpec.
  class SyncMachineGenerator < ::Rails::Generators::NamedBase
    source_root File.expand_path('templates', __dir__)

    def create_service_spec_file
      template "service_spec.rb", "spec/services/#{file_path}_spec.rb"
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sync_machine-1.4.0 lib/rails/generators/rspec/sync_machine_generator.rb
sync_machine-1.3.0 lib/rails/generators/rspec/sync_machine_generator.rb
sync_machine-1.2.0 lib/rails/generators/rspec/sync_machine_generator.rb
sync_machine-1.1.1 lib/rails/generators/rspec/sync_machine_generator.rb
sync_machine-1.1.0 lib/rails/generators/rspec/sync_machine_generator.rb
sync_machine_generator-0.8.0 lib/generators/rspec/sync_machine_generator.rb
sync_machine_generator-0.1.0 lib/generators/rspec/sync_machine_generator.rb