diff options
author | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-01-28 05:50:25 +0300 |
---|---|---|
committer | Adam Pahlevi <adam.pahlevi@gmail.com> | 2017-01-31 02:37:05 +0300 |
commit | 538d1bffec52ecdaae44eaf9fdbcb6102c1cbefd (patch) | |
tree | f994aa765dba6cd56bf97956d3150de8c631eae8 /spec/workers/project_destroy_worker_spec.rb | |
parent | d777e6f1da98be64b872a2bea2222f3e037a3d4d (diff) |
resolve deprecation warnings
don’t pass AR object, use the ID to avoid depr warning
pass in the id instead of AR object to specs for `ProjectDestroyWorker`
Diffstat (limited to 'spec/workers/project_destroy_worker_spec.rb')
-rw-r--r-- | spec/workers/project_destroy_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/project_destroy_worker_spec.rb b/spec/workers/project_destroy_worker_spec.rb index 1b910d9b91e..1f4c39eb64a 100644 --- a/spec/workers/project_destroy_worker_spec.rb +++ b/spec/workers/project_destroy_worker_spec.rb @@ -8,14 +8,14 @@ describe ProjectDestroyWorker do describe "#perform" do it "deletes the project" do - subject.perform(project.id, project.owner, {}) + subject.perform(project.id, project.owner.id, {}) expect(Project.all).not_to include(project) expect(Dir.exist?(path)).to be_falsey end it "deletes the project but skips repo deletion" do - subject.perform(project.id, project.owner, { "skip_repo" => true }) + subject.perform(project.id, project.owner.id, { "skip_repo" => true }) expect(Project.all).not_to include(project) expect(Dir.exist?(path)).to be_truthy |