From 151c361a71c0b663c44c6bf5f7d310f1f12a87af Mon Sep 17 00:00:00 2001 From: Petteri Räty Date: Sat, 12 Mar 2011 19:50:20 +0200 Subject: Rename QuestionCategory to Category We have a need for a many to many between questions and categories so start the work by renaming QuestionCategory to just Category. This allows us to add a pivot model with the name QuestionCategory. --- features/step_definitions/questions_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/step_definitions/questions_steps.rb') diff --git a/features/step_definitions/questions_steps.rb b/features/step_definitions/questions_steps.rb index fce0762..b0cd6fd 100644 --- a/features/step_definitions/questions_steps.rb +++ b/features/step_definitions/questions_steps.rb @@ -11,8 +11,8 @@ end Given /^a question "([^\"]*)" in category "([^\"]*)"$/ do |title, category| Given "a question \"#{title}\"" - Given "a question category \"#{category}\"" - @question.question_category = @question_category + Given "a category \"#{category}\"" + @question.category = @category @question.save! end -- cgit v1.2.3-65-gdbad