lib/plsql/spec/cli.rb in ruby-plsql-spec-0.4.0 vs lib/plsql/spec/cli.rb in ruby-plsql-spec-0.5.0
- old
+ new
@@ -19,15 +19,12 @@
map 'run' => :run_tests, '-v' => :version
desc 'init', 'initialize spec subdirectory with default ruby-plsql-spec files'
def init
- empty_directory 'spec'
- %w(spec_helper.rb database.yml).each do |file|
- copy_file file, "spec/#{file}"
- end
- directory 'helpers', 'spec/helpers'
empty_directory 'spec/factories'
+ copy_file '.rspec', '.rspec'
+ directory 'spec', 'spec'
say <<-EOS, :red
Please update spec/database.yml file and specify your database connection parameters.
Create tests in spec/ directory (or in subdirectories of it) in *_spec.rb files.