Skip to content

Commit

Permalink
Modified rake tasks to rely on custom gemfile for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed Jul 21, 2013
1 parent d5dee4e commit e513ec1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ file 'server.js' => 'server.coffee' do
end
task :build => 'server.js'

task :bundle do
system("bundle install --gemfile test.gemfile")
end

namespace :test do
desc "Run the tests against localhost"
task :check do |t|
system("ruby test/proxy_test.rb")
system("BUNDLE_GEMFILE=test.gemfile bundle exec ruby test/proxy_test.rb")
end
end
task :default => [:build, "test:check"]
task :default => [:build, :bundle, "test:check"]

Dir["tasks/*.rake"].each do |f|
load f
Expand Down

0 comments on commit e513ec1

Please sign in to comment.