Ruby
China
测试
请问 Rspec 里的 assigns [] 是做什么的呢?
Topics
招聘
Wiki
酷站
Gems
Sign Up
Sign In
测试
请问 Rspec 里的 assigns [] 是做什么的呢?
whitecrow
·
October 24, 2012
· Last by
whitecrow
replied at
October 24, 2012
· 2645 hits
RT
leomayleomay
#0
October 24, 2012
controller 里面 instance variable, 类似 PostsController 里面的
@
posts
或者
@
post
whitecrow
#1
October 24, 2012
@
leomayleomay
非常感谢:)
You need to
Sign in
before reply, if you don't have an account, please
Sign up
first.
Aaron Liu
@whitecrow
分享温暖,保持简洁。
武汉
Total
2
replies
New Reply comming, click to load.