I am new to testing stuffs like TDD and BDD. So, I am facing issues in
writing test cases for my plugin:
https://github.com/suryart/spree_active_sale on branch => "1-1-0-testing".
Issue I am facing are:
1) How do I test admin controllers stuff?? When I used stub_authorization!
but it gives me some error saying "Failure/Error: Unable to find matching
line from backtrace” with (<Spree::ActiveSale_1600>).authorize!(any args)
where "<Spree::ActiveSalesController_1600>" is mocked model. What is a best
way to test related with admin interface?
2) Yesterday I'd commit some test cases, and I see something unrelated on
Travis. Here is the link:
https://travis-ci.org/suryart/spree_active_sale/jobs/5026436 Which says:
Could not find table 'spree_configurations'. As, I do not see this error on
my system when I follow the same process as on Travis with vanilla app.
Kindly suggest if I am doing something wrong here.
3) It will be really grateful if you can share any good testing process to
be followed for spree extensions related with admin stuffs, as I can not
find any on internet. Or maybe unfamiliar with them.
Please consider the environment before printing this email.
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.