I have the following code, how can I write unit test for this method? I want to make sure 'foo' method is getting called on users in a scope.
def self.some_method users = User.some_scope users.each do |user| user.foo endend Gist: https://gist.github.com/beydogan/8d6e01b68dcda0bb4d07 -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/8f5ab842-e555-494d-8dbe-9c62cf094360%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
