Displaying 1 result from an estimated 1 matches for "repliescontrol".
2008 Apr 23
0
How i write the respec in this situation??
Hi all guys!im new in rails!
i have a forum,have_many topics,and the topic also has_many
replies.Now i want to write the respec for the repliescontroller:
describe RepliesController do
  controller_name :repies
  describe "All Requests",:share=>true do
    before do
      @forum = mock_model(Forum,:id=>''1'')
      @topic = mock_model(Topic,:id=>''1'',:forum =>@forum)
      @reply = mock_mode...