Sha256: 917c88ea464b75127b191625cf6bf4f14d80c741ba1c6c5362a27be08dd606c5

Contents?: true

Size: 459 Bytes

Versions: 29

Compression:

Stored size: 459 Bytes

Contents

require 'spec_helper'
require 'generators/rspec/install/install_generator'

describe Rspec::Generators::InstallGenerator do
  destination File.expand_path("../../../../../tmp", __FILE__)

  before { prepare_destination }

  it "generates .rspec" do
    run_generator
    file('.rspec').should exist
  end

  it "generates spec/spec_helper.rb" do
    run_generator
    File.read( file('spec/spec_helper.rb') ).should =~ /^require 'rspec\/autorun'$/m
  end
end

Version data entries

29 entries across 24 versions & 4 rubygems

Version Path
rspec-rails-2.12.2 spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
rspec-rails-2.12.1 spec/generators/rspec/install/install_generator_spec.rb
rspec-rails-2.12.0 spec/generators/rspec/install/install_generator_spec.rb
rspec-rails-2.11.4 spec/generators/rspec/install/install_generator_spec.rb
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/spec/generators/rspec/install/install_generator_spec.rb
rspec-rails-2.11.0 spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/generators/rspec/install/install_generator_spec.rb
rspec-rails-2.10.1 spec/generators/rspec/install/install_generator_spec.rb