Add test for QuestionsController
new method was dead code. @questions_conference was dead variable. assignment of question's foreign key was unnecessary. fixes in type of flash messages.
This commit is contained in:
parent
68cc4a73d9
commit
ccc28cdc90
4 changed files with 205 additions and 12 deletions
|
|
@ -3,7 +3,9 @@
|
|||
FactoryGirl.define do
|
||||
factory :question do
|
||||
title 'blah'
|
||||
question_type_id 1
|
||||
question_type
|
||||
global false
|
||||
after(:build) do |question|
|
||||
question.answers << build(:answer)
|
||||
question.conferences << build(:conference)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue