lib/screengem/actor.rb in screengem-0.10.1 vs lib/screengem/actor.rb in screengem-0.11.0

- old
+ new

@@ -16,28 +16,22 @@ # # Used by an actor to ask one or more questions in a step definition. # def asks(*questions) questions.each do |question| - question.configure(self, screen) - - next if question.answer - - raise incorrect_answer(question) + question.configure(self, screen).answer end self end # # Used by an actor to perform one or more tasks in a step definition. # def performs(*tasks) tasks.each do |task| - task.configure(self, screen) - - task.perform + task.configure(self, screen).perform end self end @@ -65,13 +59,9 @@ self end private - - def incorrect_answer(question) - Screengem::IncorrectAnswer.new(question) - end def recollections ActorMemory.instance.recollections(self) end