Sha256: af9fbca71fa643d887f09d6009740e14e72c8bf015eb651646513db38947fac0

Contents?: true

Size: 299 Bytes

Versions: 44

Compression:

Stored size: 299 Bytes

Contents

require 'generators/rspec'

module Rspec
  module Generators
    # @private
    class ObserverGenerator < Base
      def generate_observer_spec
        template 'observer_spec.rb',
                 File.join('spec', 'models', class_path, "#{file_name}_observer_spec.rb")
      end
    end
  end
end

Version data entries

44 entries across 43 versions & 5 rubygems

Version Path
rspec-rails-3.1.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.0.2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.0.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.0.0 lib/generators/rspec/observer/observer_generator.rb