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.9.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-4.0.0.beta3 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.8.3 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.9.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-4.0.0.beta2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.8.2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.8.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.8.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.7.2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.7.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.7.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.6.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.6.0 lib/generators/rspec/observer/observer_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rspec-rails-3.5.2/lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.6.0.beta2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.6.0.beta1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.5.2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.5.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.5.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-3.5.0.beta4 lib/generators/rspec/observer/observer_generator.rb