Commit 46ea7e438675d6a5d06f1e993879e41704632914
1 parent
9675033d
Exists in
master
and in
1 other branch
remove deprecation warnings from tests
Showing
4 changed files
with
4 additions
and
4 deletions
Show diff stats
app/models/choice.rb
| ... | ... | @@ -40,7 +40,7 @@ class Choice < ActiveRecord::Base |
| 40 | 40 | if self.changed.include?('active') && self.active? |
| 41 | 41 | self.question.mark_prompt_queue_for_refill |
| 42 | 42 | if self.question.choices.size - self.question.inactive_choices_count > 1 && self.question.uses_catchup? |
| 43 | - self.question.send_later :add_prompt_to_queue | |
| 43 | + self.question.delay.add_prompt_to_queue | |
| 44 | 44 | end |
| 45 | 45 | end |
| 46 | 46 | end | ... | ... |
app/models/question.rb
spec/integration/questions_spec.rb
| ... | ... | @@ -83,7 +83,7 @@ describe "Questions" do |
| 83 | 83 | response.body.should have_tag("question", @questions.size) |
| 84 | 84 | votes.each_value do |vs| |
| 85 | 85 | count = vs.select{|v| v.created_at > date}.size |
| 86 | - response.body.should have_tag"recent-votes", :text => count | |
| 86 | + response.body.should have_tag("recent-votes", :text => count) | |
| 87 | 87 | end |
| 88 | 88 | end |
| 89 | 89 | ... | ... |