example.rb is not a valid quiz
jeady opened this issue · 1 comments
jeady commented
It looks like maybe lib/fill_in.rb is missing? When attempting to generate a quiz from the supplied example.rb file, I receive the following error.
Artemis% ./quiz example.rb html5 --template=./html_template/template.html.erb > questionfile.html
./quiz:42:in `instance_eval': undefined method `fill_in' for #<Quiz:0x007fc46b1b8578> (NoMethodError)
from /Users/jmeady/Code/saas-class/quiz/lib/quiz.rb:101:in `instance_eval'
from /Users/jmeady/Code/saas-class/quiz/lib/quiz.rb:101:in `quiz'
from (eval):4:in `main'
from ./quiz:42:in `instance_eval'
from ./quiz:42:in `main'
from ./quiz:47:in `<main>'
Artemis% grep -r -n fill_in .
./example.rb:19: fill_in :points => 2 do
./example.rb:25: fill_in do
./example.rb:31: fill_in :order => false do
richardxia commented
Fixed by jeady's recent commits.