Skip to content

Commit

Permalink
refactor file operation
Browse files Browse the repository at this point in the history
  • Loading branch information
musaffa committed Oct 7, 2014
1 parent 3d8ce89 commit a4bc4db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Expand Up @@ -46,11 +46,11 @@ namespace :test do
end

namespace :integration do
rule '.yml' do |task|
FileUtils.copy ('spec/' + task.name), 'spec/dummy/config/database.yml'
rule '.yml' do |file|
FileUtils.copy ('spec/dummy/config/' + file.name), 'spec/dummy/config/database.yml'
end

task :sqlite => 'dummy/config/database.sqlite.yml' do
task :sqlite => 'database.sqlite.yml' do
ENV['db_adapter'] = 'sqlite'

RSpec::Core::RakeTask.new(:sqlite_integration) do |t|
Expand All @@ -59,7 +59,7 @@ namespace :test do
Rake::Task['sqlite_integration'].execute
end

task :postgresql => 'dummy/config/database.postgresql.yml' do
task :postgresql => 'database.postgresql.yml' do
ENV['db_adapter'] = 'postgresql'

RSpec::Core::RakeTask.new(:postgresql_integration) do |t|
Expand All @@ -68,7 +68,7 @@ namespace :test do
Rake::Task['postgresql_integration'].execute
end

task :mysql => 'dummy/config/database.mysql.yml' do
task :mysql => 'database.mysql.yml' do
ENV['db_adapter'] = 'mysql'

RSpec::Core::RakeTask.new(:mysql_integration) do |t|
Expand Down

0 comments on commit a4bc4db

Please sign in to comment.