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:
Aditya Prakash 2016-02-25 12:36:35 +05:30
parent 68cc4a73d9
commit ccc28cdc90
4 changed files with 205 additions and 12 deletions

View file

@ -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)