Sha256: 689a8a7ff796c563f47f9ca56bae5606de93a4e9e5eac050319f51444f65acba

Contents?: true

Size: 284 Bytes

Versions: 59

Compression:

Stored size: 284 Bytes

Contents

require 'generators/rspec'

module Rspec
  module Generators
    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

59 entries across 54 versions & 5 rubygems

Version Path
rspec-rails-2.8.0.rc2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.8.0.rc1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.7.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.7.0.rc1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.6.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.6.1.beta1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.6.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.6.0.rc6 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.6.0.rc4 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.6.0.rc2 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.5.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.4.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.4.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.3.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.3.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.2.1 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.2.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.1.0 lib/generators/rspec/observer/observer_generator.rb
rspec-rails-2.0.1 lib/generators/rspec/observer/observer_generator.rb