aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2011-03-12 19:50:20 +0200
committerPetteri Räty <betelgeuse@gentoo.org>2011-03-12 19:50:20 +0200
commit151c361a71c0b663c44c6bf5f7d310f1f12a87af (patch)
tree0cfd1511c28da5eb670f867f95b2508a2e361d20 /features/step_definitions/questions_steps.rb
parentFix deprecation warnings from delayed_job (diff)
downloadrecruiting-webapp-151c361a71c0b663c44c6bf5f7d310f1f12a87af.tar.gz
recruiting-webapp-151c361a71c0b663c44c6bf5f7d310f1f12a87af.tar.bz2
recruiting-webapp-151c361a71c0b663c44c6bf5f7d310f1f12a87af.zip
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.
Diffstat (limited to 'features/step_definitions/questions_steps.rb')
-rw-r--r--features/step_definitions/questions_steps.rb4
1 files changed, 2 insertions, 2 deletions
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