diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2011-03-12 19:50:20 +0200 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2011-03-12 19:50:20 +0200 |
commit | 151c361a71c0b663c44c6bf5f7d310f1f12a87af (patch) | |
tree | 0cfd1511c28da5eb670f867f95b2508a2e361d20 /features/step_definitions/questions_steps.rb | |
parent | Fix deprecation warnings from delayed_job (diff) | |
download | recruiting-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.rb | 4 |
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 |