Hi all, could i ask if run test suite (`bundle exe...
# support
w
Hi all, could i ask if run test suite (
bundle exec rspec
) is supposed to work out of the box, after a solidus with starter frontend installation? i made quite a lot of changes, also on order state machine, trying to understand logic of application, now i would start testing but almost all included test failed, i checked the edge guide but i’m a bit confused. moreover maybe also mounting point of engine (mine is on a subdomain) should be configured on test? Thanks
w
Yes, it’s supposed to work. Could you share what errors are you getting?
w
303 examples, 276 failures, 2 pending Failures: 1) Order permissions when an order exists in the cookies.signed #empty checks if user is authorized for :update Failure/Error: put spree.empty_cart_path ActionController:RoutingError No route matches [PUT] “/cart/empty”
w
Can you access the storefront at http://localhost:3000 ?
w
i start server by
rails s -b <http://lvh.me|lvh.me>
i’ve a home page and then store on
<http://store.lvh.me:3000>
w
and can you see the list of products there?
w
of course, all chekout process works fine, including transactional emails. maybe i need to specify somewhere mounting point of engine (on a subdomain) ?
any idea?
w
If you remove all those changes, does the test suite run? (I’m suggesting
git checkout
previous to your changes and running rspec)