Skip to content

Commit

Permalink
Enhance usability of task_spec generator (Shopify#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
RouzbehMajidi authored Apr 21, 2021
1 parent f8c53c0 commit 8e3659a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/generators/maintenance_tasks/templates/task_spec.rb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ require 'rails_helper'
module <%= tasks_module %>
<% module_namespacing do -%>
RSpec.describe <%= class_name %>Task do
# describe '#process' do
# it 'performs a task iteration' do
# <%= tasks_module %>::<%= class_name %>Task.process(element)
# end
# end
describe "#process" do
subject(:process) { described_class.process(element) }
let(:element) {
# Object to be processed in a single iteration of this task
}
pending "add some examples to (or delete) #{__FILE__}"
end
end
<% end -%>
end

0 comments on commit 8e3659a

Please sign in to comment.