Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken spec #1

Merged
merged 1 commit into from
Sep 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion spec/delayed_paperclip/attachment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
:only_process => [],
:url_with_processing => true,
:processing_image_url => nil,
:queue => "paperclip"
:queue => "paperclip",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil
})
end
end
Expand Down
20 changes: 16 additions & 4 deletions spec/delayed_paperclip/class_methods_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
:only_process => [],
:url_with_processing => true,
:processing_image_url => nil,
:queue => "paperclip"}
:queue => "paperclip",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil }
}
}
end
Expand All @@ -31,7 +34,10 @@
:only_process => [],
:url_with_processing => true,
:processing_image_url => nil,
:queue => "custom"}
:queue => "custom",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil }
}
})
end
Expand All @@ -48,7 +54,10 @@
:only_process => [],
:url_with_processing => true,
:processing_image_url => "/processing/url",
:queue => "paperclip"}
:queue => "paperclip",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil }
}
}
end
Expand All @@ -68,7 +77,10 @@
:only_process => [:small, :large],
:url_with_processing => true,
:processing_image_url => nil,
:queue => "paperclip"}
:queue => "paperclip",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil }
}
}
end
Expand Down
12 changes: 9 additions & 3 deletions spec/delayed_paperclip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
DelayedPaperclip.options.should == {:background_job_class => DelayedPaperclip::ProcessJob,
:url_with_processing => true,
:processing_image_url => nil,
:queue => "paperclip"}
:queue => "paperclip",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil }
end
end

Expand Down Expand Up @@ -50,9 +53,12 @@
:only_process => [],
:url_with_processing => true,
:processing_image_url => nil,
:queue => "paperclip"}
:queue => "paperclip",
:post_processing_callback => nil,
:post_update_callback => nil,
:pre_processing_callback => nil }
}
})
end
end
end
end