Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chendo/cora
Browse files Browse the repository at this point in the history
  • Loading branch information
plamoni committed Nov 25, 2011
2 parents 054d844 + 361b194 commit 0796f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cora/plugin.rb
Expand Up @@ -56,7 +56,7 @@ def ask(question)
log "Ask: #{question}"

f = Fiber.current
manager.respond(question, true)
manager.respond(question, prompt_for_response: true)
manager.set_callback do |text|
f.resume(text)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/cora_spec.rb
Expand Up @@ -98,7 +98,7 @@ class TestPlugin2 < Cora::Plugin
# but since we're on 1.9, we can use Fibers. I think?

it "gets input from the user and uses it intelligently" do
subject.should_receive(:respond).with("Who should I send it to?")
subject.should_receive(:respond).with("Who should I send it to?", prompt_for_response: true)
subject.process("send message")
subject.should_receive(:respond).with("Sending message to chendo")
subject.process("chendo")
Expand Down

0 comments on commit 0796f54

Please sign in to comment.