Sha256: a1e1e06f9fdb98fc8662678b67ef4eaf98e27092f6885913bf392ee1bda819f7

Contents?: true

Size: 576 Bytes

Versions: 3

Compression:

Stored size: 576 Bytes

Contents

require 'rake/testtask'
Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/test*.rb']
  t.verbose = true
end

task :require_token_in_env do
  unless ENV['DROPBOX_RUBY_SDK_ACCESS_TOKEN']
    warn "You need to set the DROPBOX_RUBY_SDK_ACCESS_TOKEN env var to run the tests"
    warn "You can get one by creating an app and generating an access token"
    warn ""
    warn "  DROPBOX_RUBY_SDK_ACCESS_TOKEN=some-auth-token rake test"
    exit 1
  end
end

task :default => :test
# This short-circuits the 'test' task
task :test => :require_token_in_env

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
dropbox-sdk-sv-0.0.1 Rakefile
dropbox-sdk-forked_v2-1.0.1 Rakefile
dropbox-sdk-forked_v2-1.0.0 Rakefile