aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinery/tasks/testing.rake
blob: 7b716391f1e321d02bf32722c9b7ca61b124d2f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace :refinery do  
  namespace :testing do
    
    desc "Initialize the testing environment"
    task :setup => [
      :init_dummy_app,
      :init_test_database
    ]
    
    task :init_dummy_app do
      system "git submodule init"
      system "git submodule update"
    end
    
    task :init_test_database => [
      'app:db:migrate',
      'app:db:test:prepare'
    ]
   
  end
end