Sha256: 8fcd2772b63139327be50d1342eeccb15d48a8efddcf86c8246518b7e73ff2e8

Contents?: true

Size: 700 Bytes

Versions: 2

Compression:

Stored size: 700 Bytes

Contents

if defined?(RAILS_ROOT)
  if Rails::VERSION::MAJOR == 2
    raise "Use genspec 0.1.0 for Rails 2; this version is for Rails 3."
  elsif Rails::VERSION::MAJOR == 3
    require 'rails/generators'
  else
    raise "Unsupported Rails version: #{Rails::VERSION::STRING}"
  end
end

begin
  require 'rspec/core'
rescue LoadError
  raise "GenSpec requires RSpec v2.0."
end

require 'fileutils'

require 'sc-core-ext'
require 'genspec/shell'
require 'genspec/matchers'
require 'genspec/generator_example_group'

Thor::Base.shell = GenSpec::Shell.new

# RSpec 2.0 compat
RSpec.configure do |config|
  config.include GenSpec::GeneratorExampleGroup, :example_group => { :file_path => /spec[\/]generators/ }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genspec-0.2.0.prerails3.2 lib/genspec.rb
genspec-0.2.0.prerails3.1 lib/genspec.rb