Skip to content

Instantly share code, notes, and snippets.

@elight
Created December 18, 2013 21:44
Show Gist options
  • Save elight/8030351 to your computer and use it in GitHub Desktop.
Save elight/8030351 to your computer and use it in GitHub Desktop.
desc 'Run mocked tests for a specific provider'
task :mock, :provider do |t, args|
if args.to_a.size != 1
fail 'USAGE: rake mock[<provider>]'
end
provider = args[:provider]
sh("export FOG_MOCK=true && bundle exec shindont tests/#{provider}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment