ADD sync trustie data

This commit is contained in:
Jasder
2020-03-19 17:17:27 +08:00
parent 153b3b340c
commit bf5e191efa
3 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
require 'rails_helper'
require 'rake'
# RSpec.describe CommitExercsieNotifyJobJob, type: :job do
# pending "add some examples to (or delete) #{__FILE__}"
# end
describe "test tasks" do
before :all do
@rake = Rake::Application.new
Rake.application = @rake
Rake.application.rake_require 'lib/tasks/sync_data_to_gitea', [Rails.root.to_s]
Rake::Task.define_task :environment
end
describe "demo:test" do
it"runs" do
@rake["sync_data_to_gitea:users"].invoke
end
end
end