-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rspec & bots - make bots testable #32
Comments
maybe something like send_and_expect_answer "Hi bot!", "Hi Human!"
#or
send_text_expect_text "Hi bot!", "Hi Human!"
send_text_expect_image "Hi bot!", "http://host.com/img.png"
send_audio_expect_audio "http://host.com/img.mp3", "http://host.com/img.mp3" |
I like that API. There's also this for acceptance tests. |
hmm interesting - could it be auto started with bundle exec rspec ? for now I use webmock --> 18ea589 |
You could write a wrapper or do something in the Your solution fits more into the project. 👍 |
@pferdefleisch @ramonh
cc: @tosh
played around with rspec to make it possible to make tests.. now I wonder how we want to do this :)
https://github.com/davidmann4/botstack/blob/master/spec/bot_spec_helper.rb
https://github.com/davidmann4/botstack/blob/master/spec/lib/basic_functionality_spec.rb
I guess we want to be able to test whole conversations?
But on the other hand rspec maybe should just cover botstack mechanics?
really curious about your opinion...
The text was updated successfully, but these errors were encountered: