Displaying 1 result from an estimated 1 matches for "vodd".
Did you mean:
void
2012 Jul 27
3
Rspec: How to mock class method
Hi, I have two model: Message, User
message.rb
```
class Message < ActiveRecord::Base
class << self
def method_a(args)
[1,2]
end
end
end
```
user.rb
```
class User < ActiveRecord::Base
def method_user
if Message.method_a(''anythings'')
#... some code
end
end
end
```
I want to test method_user,but I don''t want to test