Skip to content

Commit

Permalink
Make specs more compatible with Rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Mar 1, 2013
1 parent 7432513 commit b90a3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -45,7 +45,7 @@ class Story < ActiveRecord::Base
self.primary_key = 'story_id'
def tell; text; end
def whatever(n, _); tell*n; end
default_scope where(:scoped => true)
default_scope { where(:scoped => true) }

handle_asynchronously :whatever
end
Expand Down

0 comments on commit b90a3a4

Please sign in to comment.