spree_frontend 2.4.10 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/Gemfile +6 -0
- data/LICENSE +1 -1
- data/README.md +39 -10
- data/Rakefile +29 -0
- data/{vendor → app}/assets/images/flags/ad.png +0 -0
- data/{vendor → app}/assets/images/flags/ae.png +0 -0
- data/{vendor → app}/assets/images/flags/af.png +0 -0
- data/{vendor → app}/assets/images/flags/ag.png +0 -0
- data/{vendor → app}/assets/images/flags/ai.png +0 -0
- data/{vendor → app}/assets/images/flags/al.png +0 -0
- data/{vendor → app}/assets/images/flags/am.png +0 -0
- data/{vendor → app}/assets/images/flags/an.png +0 -0
- data/{vendor → app}/assets/images/flags/ao.png +0 -0
- data/{vendor → app}/assets/images/flags/ar.png +0 -0
- data/{vendor → app}/assets/images/flags/as.png +0 -0
- data/{vendor → app}/assets/images/flags/at.png +0 -0
- data/{vendor → app}/assets/images/flags/au.png +0 -0
- data/{vendor → app}/assets/images/flags/aw.png +0 -0
- data/{vendor → app}/assets/images/flags/ax.png +0 -0
- data/{vendor → app}/assets/images/flags/az.png +0 -0
- data/{vendor → app}/assets/images/flags/ba.png +0 -0
- data/{vendor → app}/assets/images/flags/bb.png +0 -0
- data/{vendor → app}/assets/images/flags/bd.png +0 -0
- data/{vendor → app}/assets/images/flags/be.png +0 -0
- data/{vendor → app}/assets/images/flags/bf.png +0 -0
- data/{vendor → app}/assets/images/flags/bg.png +0 -0
- data/{vendor → app}/assets/images/flags/bh.png +0 -0
- data/{vendor → app}/assets/images/flags/bi.png +0 -0
- data/{vendor → app}/assets/images/flags/bj.png +0 -0
- data/{vendor → app}/assets/images/flags/bm.png +0 -0
- data/{vendor → app}/assets/images/flags/bn.png +0 -0
- data/{vendor → app}/assets/images/flags/bo.png +0 -0
- data/{vendor → app}/assets/images/flags/br.png +0 -0
- data/{vendor → app}/assets/images/flags/bs.png +0 -0
- data/{vendor → app}/assets/images/flags/bt.png +0 -0
- data/{vendor → app}/assets/images/flags/bv.png +0 -0
- data/{vendor → app}/assets/images/flags/bw.png +0 -0
- data/{vendor → app}/assets/images/flags/by.png +0 -0
- data/{vendor → app}/assets/images/flags/bz.png +0 -0
- data/{vendor → app}/assets/images/flags/ca.png +0 -0
- data/{vendor → app}/assets/images/flags/catalonia.png +0 -0
- data/{vendor → app}/assets/images/flags/cc.png +0 -0
- data/{vendor → app}/assets/images/flags/cd.png +0 -0
- data/{vendor → app}/assets/images/flags/cf.png +0 -0
- data/{vendor → app}/assets/images/flags/cg.png +0 -0
- data/{vendor → app}/assets/images/flags/ch.png +0 -0
- data/{vendor → app}/assets/images/flags/ci.png +0 -0
- data/{vendor → app}/assets/images/flags/ck.png +0 -0
- data/{vendor → app}/assets/images/flags/cl.png +0 -0
- data/{vendor → app}/assets/images/flags/cm.png +0 -0
- data/{vendor → app}/assets/images/flags/cn.png +0 -0
- data/{vendor → app}/assets/images/flags/co.png +0 -0
- data/{vendor → app}/assets/images/flags/cr.png +0 -0
- data/{vendor → app}/assets/images/flags/cs.png +0 -0
- data/{vendor → app}/assets/images/flags/cu.png +0 -0
- data/{vendor → app}/assets/images/flags/cv.png +0 -0
- data/{vendor → app}/assets/images/flags/cx.png +0 -0
- data/{vendor → app}/assets/images/flags/cy.png +0 -0
- data/{vendor → app}/assets/images/flags/cz.png +0 -0
- data/{vendor → app}/assets/images/flags/de.png +0 -0
- data/{vendor → app}/assets/images/flags/dj.png +0 -0
- data/{vendor → app}/assets/images/flags/dk.png +0 -0
- data/{vendor → app}/assets/images/flags/dm.png +0 -0
- data/{vendor → app}/assets/images/flags/do.png +0 -0
- data/{vendor → app}/assets/images/flags/dz.png +0 -0
- data/{vendor → app}/assets/images/flags/ec.png +0 -0
- data/{vendor → app}/assets/images/flags/ee.png +0 -0
- data/{vendor → app}/assets/images/flags/eg.png +0 -0
- data/{vendor → app}/assets/images/flags/eh.png +0 -0
- data/{vendor → app}/assets/images/flags/england.png +0 -0
- data/{vendor → app}/assets/images/flags/er.png +0 -0
- data/{vendor → app}/assets/images/flags/es.png +0 -0
- data/{vendor → app}/assets/images/flags/et.png +0 -0
- data/{vendor → app}/assets/images/flags/europeanunion.png +0 -0
- data/{vendor → app}/assets/images/flags/fam.png +0 -0
- data/{vendor → app}/assets/images/flags/fi.png +0 -0
- data/{vendor → app}/assets/images/flags/fj.png +0 -0
- data/{vendor → app}/assets/images/flags/fk.png +0 -0
- data/{vendor → app}/assets/images/flags/fm.png +0 -0
- data/{vendor → app}/assets/images/flags/fo.png +0 -0
- data/{vendor → app}/assets/images/flags/fr.png +0 -0
- data/{vendor → app}/assets/images/flags/ga.png +0 -0
- data/{vendor → app}/assets/images/flags/gb.png +0 -0
- data/{vendor → app}/assets/images/flags/gd.png +0 -0
- data/{vendor → app}/assets/images/flags/ge.png +0 -0
- data/{vendor → app}/assets/images/flags/gf.png +0 -0
- data/{vendor → app}/assets/images/flags/gh.png +0 -0
- data/{vendor → app}/assets/images/flags/gi.png +0 -0
- data/{vendor → app}/assets/images/flags/gl.png +0 -0
- data/{vendor → app}/assets/images/flags/gm.png +0 -0
- data/{vendor → app}/assets/images/flags/gn.png +0 -0
- data/{vendor → app}/assets/images/flags/gp.png +0 -0
- data/{vendor → app}/assets/images/flags/gq.png +0 -0
- data/{vendor → app}/assets/images/flags/gr.png +0 -0
- data/{vendor → app}/assets/images/flags/gs.png +0 -0
- data/{vendor → app}/assets/images/flags/gt.png +0 -0
- data/{vendor → app}/assets/images/flags/gu.png +0 -0
- data/{vendor → app}/assets/images/flags/gw.png +0 -0
- data/{vendor → app}/assets/images/flags/gy.png +0 -0
- data/{vendor → app}/assets/images/flags/hk.png +0 -0
- data/{vendor → app}/assets/images/flags/hm.png +0 -0
- data/{vendor → app}/assets/images/flags/hn.png +0 -0
- data/{vendor → app}/assets/images/flags/hr.png +0 -0
- data/{vendor → app}/assets/images/flags/ht.png +0 -0
- data/{vendor → app}/assets/images/flags/hu.png +0 -0
- data/{vendor → app}/assets/images/flags/id.png +0 -0
- data/{vendor → app}/assets/images/flags/ie.png +0 -0
- data/{vendor → app}/assets/images/flags/il.png +0 -0
- data/{vendor → app}/assets/images/flags/in.png +0 -0
- data/{vendor → app}/assets/images/flags/io.png +0 -0
- data/{vendor → app}/assets/images/flags/iq.png +0 -0
- data/{vendor → app}/assets/images/flags/ir.png +0 -0
- data/{vendor → app}/assets/images/flags/is.png +0 -0
- data/{vendor → app}/assets/images/flags/it.png +0 -0
- data/{vendor → app}/assets/images/flags/ja.png +0 -0
- data/{vendor → app}/assets/images/flags/jm.png +0 -0
- data/{vendor → app}/assets/images/flags/jo.png +0 -0
- data/{vendor → app}/assets/images/flags/ke.png +0 -0
- data/{vendor → app}/assets/images/flags/kg.png +0 -0
- data/{vendor → app}/assets/images/flags/kh.png +0 -0
- data/{vendor → app}/assets/images/flags/ki.png +0 -0
- data/{vendor → app}/assets/images/flags/km.png +0 -0
- data/{vendor → app}/assets/images/flags/kn.png +0 -0
- data/{vendor → app}/assets/images/flags/kp.png +0 -0
- data/{vendor → app}/assets/images/flags/kr.png +0 -0
- data/{vendor → app}/assets/images/flags/kw.png +0 -0
- data/{vendor → app}/assets/images/flags/ky.png +0 -0
- data/{vendor → app}/assets/images/flags/kz.png +0 -0
- data/{vendor → app}/assets/images/flags/la.png +0 -0
- data/{vendor → app}/assets/images/flags/lb.png +0 -0
- data/{vendor → app}/assets/images/flags/lc.png +0 -0
- data/{vendor → app}/assets/images/flags/li.png +0 -0
- data/{vendor → app}/assets/images/flags/lk.png +0 -0
- data/{vendor → app}/assets/images/flags/lr.png +0 -0
- data/{vendor → app}/assets/images/flags/ls.png +0 -0
- data/{vendor → app}/assets/images/flags/lt.png +0 -0
- data/{vendor → app}/assets/images/flags/lu.png +0 -0
- data/{vendor → app}/assets/images/flags/lv.png +0 -0
- data/{vendor → app}/assets/images/flags/ly.png +0 -0
- data/{vendor → app}/assets/images/flags/ma.png +0 -0
- data/{vendor → app}/assets/images/flags/mc.png +0 -0
- data/{vendor → app}/assets/images/flags/md.png +0 -0
- data/{vendor → app}/assets/images/flags/me.png +0 -0
- data/{vendor → app}/assets/images/flags/mg.png +0 -0
- data/{vendor → app}/assets/images/flags/mh.png +0 -0
- data/{vendor → app}/assets/images/flags/mk.png +0 -0
- data/{vendor → app}/assets/images/flags/ml.png +0 -0
- data/{vendor → app}/assets/images/flags/mm.png +0 -0
- data/{vendor → app}/assets/images/flags/mn.png +0 -0
- data/{vendor → app}/assets/images/flags/mo.png +0 -0
- data/{vendor → app}/assets/images/flags/mp.png +0 -0
- data/{vendor → app}/assets/images/flags/mq.png +0 -0
- data/{vendor → app}/assets/images/flags/mr.png +0 -0
- data/{vendor → app}/assets/images/flags/ms.png +0 -0
- data/{vendor → app}/assets/images/flags/mt.png +0 -0
- data/{vendor → app}/assets/images/flags/mu.png +0 -0
- data/{vendor → app}/assets/images/flags/mv.png +0 -0
- data/{vendor → app}/assets/images/flags/mw.png +0 -0
- data/{vendor → app}/assets/images/flags/mx.png +0 -0
- data/{vendor → app}/assets/images/flags/my.png +0 -0
- data/{vendor → app}/assets/images/flags/mz.png +0 -0
- data/{vendor → app}/assets/images/flags/na.png +0 -0
- data/{vendor → app}/assets/images/flags/nc.png +0 -0
- data/{vendor → app}/assets/images/flags/ne.png +0 -0
- data/{vendor → app}/assets/images/flags/nf.png +0 -0
- data/{vendor → app}/assets/images/flags/ng.png +0 -0
- data/{vendor → app}/assets/images/flags/ni.png +0 -0
- data/{vendor → app}/assets/images/flags/nl.png +0 -0
- data/{vendor → app}/assets/images/flags/no.png +0 -0
- data/{vendor → app}/assets/images/flags/np.png +0 -0
- data/{vendor → app}/assets/images/flags/nr.png +0 -0
- data/{vendor → app}/assets/images/flags/nu.png +0 -0
- data/{vendor → app}/assets/images/flags/nz.png +0 -0
- data/{vendor → app}/assets/images/flags/om.png +0 -0
- data/{vendor → app}/assets/images/flags/pa.png +0 -0
- data/{vendor → app}/assets/images/flags/pe.png +0 -0
- data/{vendor → app}/assets/images/flags/pf.png +0 -0
- data/{vendor → app}/assets/images/flags/pg.png +0 -0
- data/{vendor → app}/assets/images/flags/ph.png +0 -0
- data/{vendor → app}/assets/images/flags/pk.png +0 -0
- data/{vendor → app}/assets/images/flags/pl.png +0 -0
- data/{vendor → app}/assets/images/flags/pm.png +0 -0
- data/{vendor → app}/assets/images/flags/pn.png +0 -0
- data/{vendor → app}/assets/images/flags/pr.png +0 -0
- data/{vendor → app}/assets/images/flags/ps.png +0 -0
- data/{vendor → app}/assets/images/flags/pt.png +0 -0
- data/{vendor → app}/assets/images/flags/pw.png +0 -0
- data/{vendor → app}/assets/images/flags/py.png +0 -0
- data/{vendor → app}/assets/images/flags/qa.png +0 -0
- data/{vendor → app}/assets/images/flags/re.png +0 -0
- data/{vendor → app}/assets/images/flags/ro.png +0 -0
- data/{vendor → app}/assets/images/flags/rs.png +0 -0
- data/{vendor → app}/assets/images/flags/ru.png +0 -0
- data/{vendor → app}/assets/images/flags/rw.png +0 -0
- data/{vendor → app}/assets/images/flags/sa.png +0 -0
- data/{vendor → app}/assets/images/flags/sb.png +0 -0
- data/{vendor → app}/assets/images/flags/sc.png +0 -0
- data/{vendor → app}/assets/images/flags/scotland.png +0 -0
- data/{vendor → app}/assets/images/flags/sd.png +0 -0
- data/{vendor → app}/assets/images/flags/se.png +0 -0
- data/{vendor → app}/assets/images/flags/sg.png +0 -0
- data/{vendor → app}/assets/images/flags/sh.png +0 -0
- data/{vendor → app}/assets/images/flags/si.png +0 -0
- data/{vendor → app}/assets/images/flags/sj.png +0 -0
- data/{vendor → app}/assets/images/flags/sk.png +0 -0
- data/{vendor → app}/assets/images/flags/sl.png +0 -0
- data/{vendor → app}/assets/images/flags/sm.png +0 -0
- data/{vendor → app}/assets/images/flags/sn.png +0 -0
- data/{vendor → app}/assets/images/flags/so.png +0 -0
- data/{vendor → app}/assets/images/flags/sr.png +0 -0
- data/{vendor → app}/assets/images/flags/st.png +0 -0
- data/{vendor → app}/assets/images/flags/sv.png +0 -0
- data/{vendor → app}/assets/images/flags/sy.png +0 -0
- data/{vendor → app}/assets/images/flags/sz.png +0 -0
- data/{vendor → app}/assets/images/flags/tc.png +0 -0
- data/{vendor → app}/assets/images/flags/td.png +0 -0
- data/{vendor → app}/assets/images/flags/tf.png +0 -0
- data/{vendor → app}/assets/images/flags/tg.png +0 -0
- data/{vendor → app}/assets/images/flags/th.png +0 -0
- data/{vendor → app}/assets/images/flags/tj.png +0 -0
- data/{vendor → app}/assets/images/flags/tk.png +0 -0
- data/{vendor → app}/assets/images/flags/tl.png +0 -0
- data/{vendor → app}/assets/images/flags/tm.png +0 -0
- data/{vendor → app}/assets/images/flags/tn.png +0 -0
- data/{vendor → app}/assets/images/flags/to.png +0 -0
- data/{vendor → app}/assets/images/flags/tr.png +0 -0
- data/{vendor → app}/assets/images/flags/tt.png +0 -0
- data/{vendor → app}/assets/images/flags/tv.png +0 -0
- data/{vendor → app}/assets/images/flags/tw.png +0 -0
- data/{vendor → app}/assets/images/flags/tz.png +0 -0
- data/{vendor → app}/assets/images/flags/ua.png +0 -0
- data/{vendor → app}/assets/images/flags/ug.png +0 -0
- data/{vendor → app}/assets/images/flags/um.png +0 -0
- data/{vendor → app}/assets/images/flags/us.png +0 -0
- data/{vendor → app}/assets/images/flags/uy.png +0 -0
- data/{vendor → app}/assets/images/flags/uz.png +0 -0
- data/{vendor → app}/assets/images/flags/va.png +0 -0
- data/{vendor → app}/assets/images/flags/vc.png +0 -0
- data/{vendor → app}/assets/images/flags/ve.png +0 -0
- data/{vendor → app}/assets/images/flags/vg.png +0 -0
- data/{vendor → app}/assets/images/flags/vi.png +0 -0
- data/{vendor → app}/assets/images/flags/vn.png +0 -0
- data/{vendor → app}/assets/images/flags/vu.png +0 -0
- data/{vendor → app}/assets/images/flags/wales.png +0 -0
- data/{vendor → app}/assets/images/flags/wf.png +0 -0
- data/{vendor → app}/assets/images/flags/ws.png +0 -0
- data/{vendor → app}/assets/images/flags/ye.png +0 -0
- data/{vendor → app}/assets/images/flags/yt.png +0 -0
- data/{vendor → app}/assets/images/flags/za.png +0 -0
- data/{vendor → app}/assets/images/flags/zm.png +0 -0
- data/{vendor → app}/assets/images/flags/zw.png +0 -0
- data/app/assets/images/logo/spree_50.png +0 -0
- data/app/assets/images/spree_header.jpg +0 -0
- data/app/assets/javascripts/spree/frontend.js +1 -1
- data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +2 -2
- data/app/assets/stylesheets/spree/frontend.css +4 -4
- data/app/assets/stylesheets/spree/frontend/_variables.scss +4 -61
- data/app/assets/stylesheets/spree/frontend/frontend_bootstrap.css.scss +102 -0
- data/app/controllers/spree/checkout_controller.rb +31 -27
- data/app/controllers/spree/orders_controller.rb +20 -8
- data/app/controllers/spree/store_controller.rb +2 -3
- data/app/controllers/spree/taxons_controller.rb +2 -2
- data/app/helpers/spree/frontend_helper.rb +93 -0
- data/app/helpers/spree/orders_helper.rb +16 -0
- data/app/helpers/spree/store_helper.rb +10 -0
- data/app/helpers/spree/taxons_helper.rb +19 -0
- data/app/models/spree/frontend_configuration.rb +1 -1
- data/app/views/kaminari/twitter-bootstrap-3/_first_page.html.erb +13 -0
- data/app/views/kaminari/twitter-bootstrap-3/_gap.html.erb +8 -0
- data/app/views/kaminari/twitter-bootstrap-3/_last_page.html.erb +13 -0
- data/app/views/kaminari/twitter-bootstrap-3/_next_page.html.erb +13 -0
- data/app/views/kaminari/twitter-bootstrap-3/_page.html.erb +12 -0
- data/app/views/kaminari/twitter-bootstrap-3/_paginator.html.erb +24 -0
- data/app/views/kaminari/twitter-bootstrap-3/_prev_page.html.erb +13 -0
- data/app/views/spree/address/_form.html.erb +24 -24
- data/app/views/spree/checkout/_address.html.erb +33 -22
- data/app/views/spree/checkout/_confirm.html.erb +10 -9
- data/app/views/spree/checkout/_delivery.html.erb +24 -20
- data/app/views/spree/checkout/_payment.html.erb +17 -18
- data/app/views/spree/checkout/_summary.html.erb +2 -2
- data/app/views/spree/checkout/edit.html.erb +23 -14
- data/app/views/spree/checkout/payment/_gateway.html.erb +31 -28
- data/app/views/spree/layouts/spree_application.html.erb +6 -12
- data/app/views/spree/orders/_adjustments.html.erb +5 -0
- data/app/views/spree/orders/_form.html.erb +8 -8
- data/app/views/spree/orders/_line_item.html.erb +6 -6
- data/app/views/spree/orders/edit.html.erb +14 -16
- data/app/views/spree/orders/show.html.erb +9 -4
- data/app/views/spree/products/_cart_form.html.erb +15 -11
- data/app/views/spree/products/_promotions.html.erb +1 -1
- data/app/views/spree/products/_properties.html.erb +2 -2
- data/app/views/spree/products/_taxons.html.erb +4 -4
- data/app/views/spree/products/_thumbnails.html.erb +3 -3
- data/app/views/spree/products/index.html.erb +13 -9
- data/app/views/spree/products/show.html.erb +11 -9
- data/app/views/spree/shared/_error_messages.html.erb +12 -0
- data/app/views/spree/shared/_filters.html.erb +4 -4
- data/app/views/spree/shared/_footer.html.erb +10 -6
- data/app/views/spree/shared/_google_add_items.js.erb +11 -0
- data/app/views/spree/shared/_google_analytics.js.erb +13 -0
- data/app/views/spree/shared/_google_checkout.js.erb +10 -0
- data/app/views/spree/shared/_google_purchase.js.erb +13 -0
- data/app/views/spree/shared/_head.html.erb +1 -1
- data/app/views/spree/shared/_header.html.erb +17 -5
- data/app/views/spree/shared/_login.html.erb +19 -0
- data/app/views/spree/shared/_login_bar.html.erb +6 -0
- data/app/views/spree/shared/_main_nav_bar.html.erb +15 -11
- data/app/views/spree/shared/_nav_bar.html.erb +3 -2
- data/app/views/spree/shared/_order_details.html.erb +30 -31
- data/app/views/spree/shared/_products.html.erb +19 -15
- data/app/views/spree/shared/_search.html.erb +8 -4
- data/app/views/spree/shared/_sidebar.html.erb +1 -1
- data/app/views/spree/shared/_taxonomies.html.erb +1 -1
- data/app/views/spree/taxons/show.html.erb +1 -1
- data/config/initializers/spree.rb +0 -2
- data/lib/spree/frontend.rb +5 -4
- data/lib/spree/frontend/engine.rb +2 -2
- data/script/rails +9 -0
- data/spec/controllers/controller_extension_spec.rb +115 -0
- data/spec/controllers/controller_helpers_spec.rb +26 -0
- data/spec/controllers/spree/checkout_controller_spec.rb +424 -0
- data/spec/controllers/spree/checkout_controller_with_views_spec.rb +36 -0
- data/spec/controllers/spree/content_controller_spec.rb +12 -0
- data/spec/controllers/spree/current_order_tracking_spec.rb +44 -0
- data/spec/controllers/spree/home_controller_spec.rb +27 -0
- data/spec/controllers/spree/orders_controller_ability_spec.rb +104 -0
- data/spec/controllers/spree/orders_controller_spec.rb +134 -0
- data/spec/controllers/spree/orders_controller_transitions_spec.rb +31 -0
- data/spec/controllers/spree/products_controller_spec.rb +36 -0
- data/spec/controllers/spree/taxons_controller_spec.rb +12 -0
- data/spec/features/address_spec.rb +93 -0
- data/spec/features/automatic_promotion_adjustments_spec.rb +47 -0
- data/spec/features/caching/products_spec.rb +55 -0
- data/spec/features/caching/taxons_spec.rb +22 -0
- data/spec/features/cart_spec.rb +84 -0
- data/spec/features/checkout_spec.rb +515 -0
- data/spec/features/checkout_unshippable_spec.rb +34 -0
- data/spec/features/coupon_code_spec.rb +87 -0
- data/spec/features/currency_spec.rb +18 -0
- data/spec/features/free_shipping_promotions_spec.rb +59 -0
- data/spec/features/locale_spec.rb +60 -0
- data/spec/features/order_spec.rb +74 -0
- data/spec/features/page_promotions_spec.rb +36 -0
- data/spec/features/products_spec.rb +262 -0
- data/spec/features/taxons_spec.rb +147 -0
- data/spec/features/template_rendering_spec.rb +19 -0
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spec/helpers/frontend_helper_spec.rb +41 -0
- data/spec/helpers/order_helper_spec.rb +12 -0
- data/spec/helpers/taxons_helper_spec.rb +17 -0
- data/spec/spec_helper.rb +115 -0
- data/spec/support/shared_contexts/checkout_setup.rb +9 -0
- data/spec/support/shared_contexts/custom_products.rb +25 -0
- data/spec/support/shared_contexts/product_prototypes.rb +30 -0
- data/spec/views/spree/checkout/_summary_spec.rb +11 -0
- data/spree_frontend.gemspec +30 -0
- metadata +392 -282
- data/app/assets/images/icons/add-to-cart.png +0 -0
- data/app/assets/images/icons/checkout.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/app/assets/images/icons/update.png +0 -0
- data/app/assets/images/spinner.gif +0 -0
- data/app/assets/images/spree/frontend/cart.png +0 -0
- data/app/assets/images/spree/frontend/select_arrow.gif +0 -0
- data/app/assets/stylesheets/spree/frontend/screen.css.scss +0 -1321
- data/app/views/spree/shared/_google_analytics.html.erb +0 -40
- data/config/initializers/assets.rb +0 -1
- data/config/initializers/check_for_orphaned_preferences.rb +0 -9
- data/config/initializers/deprecation_checker.rb +0 -7
- data/config/initializers/rails_5868.rb +0 -8
- data/lib/spree/frontend/preference_rescue.rb +0 -25
- data/vendor/assets/images/datepicker/cal.gif +0 -0
- data/vendor/assets/images/jquery.formalize/button.png +0 -0
- data/vendor/assets/images/jquery.formalize/select_arrow.gif +0 -0
- data/vendor/assets/javascripts/jquery.formalize.min.js +0 -1
- data/vendor/assets/stylesheets/jquery.formalize.css.erb +0 -363
@@ -0,0 +1,147 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "viewing products", type: :feature, inaccessible: true do
|
4
|
+
let!(:taxonomy) { create(:taxonomy, name: "Category") }
|
5
|
+
let!(:super_clothing) { taxonomy.root.children.create(name: "Super Clothing") }
|
6
|
+
let!(:t_shirts) { super_clothing.children.create(name: "T-Shirts") }
|
7
|
+
let!(:xxl) { t_shirts.children.create(name: "XXL") }
|
8
|
+
let!(:product) do
|
9
|
+
product = create(:product, name: "Superman T-Shirt")
|
10
|
+
product.taxons << t_shirts
|
11
|
+
end
|
12
|
+
let(:metas) { { meta_description: 'Brand new Ruby on Rails TShirts', meta_title: "Ruby On Rails TShirt", meta_keywords: 'ror, tshirt, ruby' } }
|
13
|
+
let(:store_name) do
|
14
|
+
((first_store = Spree::Store.first) && first_store.name).to_s
|
15
|
+
end
|
16
|
+
|
17
|
+
# Regression test for #1796
|
18
|
+
it "can see a taxon's products, even if that taxon has child taxons" do
|
19
|
+
visit '/t/category/super-clothing/t-shirts'
|
20
|
+
expect(page).to have_content("Superman T-Shirt")
|
21
|
+
end
|
22
|
+
|
23
|
+
it "shouldn't show nested taxons with a search" do
|
24
|
+
visit '/t/category/super-clothing?keywords=shirt'
|
25
|
+
expect(page).to have_content("Superman T-Shirt")
|
26
|
+
expect(page).not_to have_selector("div[data-hook='taxon_children']")
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'breadcrumbs' do
|
30
|
+
before do
|
31
|
+
visit '/t/category/super-clothing/t-shirts'
|
32
|
+
end
|
33
|
+
it "should render breadcrumbs" do
|
34
|
+
expect(page.find("#breadcrumbs")).to have_link("T-Shirts")
|
35
|
+
end
|
36
|
+
it "should mark last breadcrumb as active" do
|
37
|
+
expect(page.find('#breadcrumbs .active')).to have_link("T-Shirts")
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'meta tags and title' do
|
42
|
+
it 'displays metas' do
|
43
|
+
t_shirts.update_attributes metas
|
44
|
+
visit '/t/category/super-clothing/t-shirts'
|
45
|
+
expect(page).to have_meta(:description, 'Brand new Ruby on Rails TShirts')
|
46
|
+
expect(page).to have_meta(:keywords, 'ror, tshirt, ruby')
|
47
|
+
end
|
48
|
+
|
49
|
+
it 'display title if set' do
|
50
|
+
t_shirts.update_attributes metas
|
51
|
+
visit '/t/category/super-clothing/t-shirts'
|
52
|
+
expect(page).to have_title("Ruby On Rails TShirt")
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'displays title from taxon root and taxon name' do
|
56
|
+
visit '/t/category/super-clothing/t-shirts'
|
57
|
+
expect(page).to have_title('Category - T-Shirts - ' + store_name)
|
58
|
+
end
|
59
|
+
|
60
|
+
# Regression test for #2814
|
61
|
+
it "doesn't use meta_title as heading on page" do
|
62
|
+
t_shirts.update_attributes metas
|
63
|
+
visit '/t/category/super-clothing/t-shirts'
|
64
|
+
within("h1.taxon-title") do
|
65
|
+
expect(page).to have_content(t_shirts.name)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
it 'uses taxon name in title when meta_title set to empty string' do
|
70
|
+
t_shirts.update_attributes meta_title: ''
|
71
|
+
visit '/t/category/super-clothing/t-shirts'
|
72
|
+
expect(page).to have_title('Category - T-Shirts - ' + store_name)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
context "taxon pages" do
|
77
|
+
include_context "custom products"
|
78
|
+
before do
|
79
|
+
visit spree.root_path
|
80
|
+
end
|
81
|
+
|
82
|
+
it "should be able to visit brand Ruby on Rails" do
|
83
|
+
within(:css, '#taxonomies') { click_link "Ruby on Rails" }
|
84
|
+
|
85
|
+
expect(page.all('#products .product-list-item').size).to eq(7)
|
86
|
+
tmp = page.all('#products .product-list-item a').map(&:text).flatten.compact
|
87
|
+
tmp.delete("")
|
88
|
+
array = ["Ruby on Rails Bag",
|
89
|
+
"Ruby on Rails Baseball Jersey",
|
90
|
+
"Ruby on Rails Jr. Spaghetti",
|
91
|
+
"Ruby on Rails Mug",
|
92
|
+
"Ruby on Rails Ringer T-Shirt",
|
93
|
+
"Ruby on Rails Stein",
|
94
|
+
"Ruby on Rails Tote"]
|
95
|
+
expect(tmp.sort!).to eq(array)
|
96
|
+
end
|
97
|
+
|
98
|
+
it "should be able to visit brand Ruby" do
|
99
|
+
within(:css, '#taxonomies') { click_link "Ruby" }
|
100
|
+
|
101
|
+
expect(page.all('#products .product-list-item').size).to eq(1)
|
102
|
+
tmp = page.all('#products .product-list-item a').map(&:text).flatten.compact
|
103
|
+
tmp.delete("")
|
104
|
+
expect(tmp.sort!).to eq(["Ruby Baseball Jersey"])
|
105
|
+
end
|
106
|
+
|
107
|
+
it "should be able to visit brand Apache" do
|
108
|
+
within(:css, '#taxonomies') { click_link "Apache" }
|
109
|
+
|
110
|
+
expect(page.all('#products .product-list-item').size).to eq(1)
|
111
|
+
tmp = page.all('#products .product-list-item a').map(&:text).flatten.compact
|
112
|
+
tmp.delete("")
|
113
|
+
expect(tmp.sort!).to eq(["Apache Baseball Jersey"])
|
114
|
+
end
|
115
|
+
|
116
|
+
it "should be able to visit category Clothing" do
|
117
|
+
click_link "Clothing"
|
118
|
+
|
119
|
+
expect(page.all('#products .product-list-item').size).to eq(5)
|
120
|
+
tmp = page.all('#products .product-list-item a').map(&:text).flatten.compact
|
121
|
+
tmp.delete("")
|
122
|
+
expect(tmp.sort!).to eq(["Apache Baseball Jersey",
|
123
|
+
"Ruby Baseball Jersey",
|
124
|
+
"Ruby on Rails Baseball Jersey",
|
125
|
+
"Ruby on Rails Jr. Spaghetti",
|
126
|
+
"Ruby on Rails Ringer T-Shirt"])
|
127
|
+
end
|
128
|
+
|
129
|
+
it "should be able to visit category Mugs" do
|
130
|
+
click_link "Mugs"
|
131
|
+
|
132
|
+
expect(page.all('#products .product-list-item').size).to eq(2)
|
133
|
+
tmp = page.all('#products .product-list-item a').map(&:text).flatten.compact
|
134
|
+
tmp.delete("")
|
135
|
+
expect(tmp.sort!).to eq(["Ruby on Rails Mug", "Ruby on Rails Stein"])
|
136
|
+
end
|
137
|
+
|
138
|
+
it "should be able to visit category Bags" do
|
139
|
+
click_link "Bags"
|
140
|
+
|
141
|
+
expect(page.all('#products .product-list-item').size).to eq(2)
|
142
|
+
tmp = page.all('#products .product-list-item a').map(&:text).flatten.compact
|
143
|
+
tmp.delete("")
|
144
|
+
expect(tmp.sort!).to eq(["Ruby on Rails Bag", "Ruby on Rails Tote"])
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Template rendering", type: :feature do
|
4
|
+
|
5
|
+
after do
|
6
|
+
Capybara.ignore_hidden_elements = true
|
7
|
+
end
|
8
|
+
|
9
|
+
before do
|
10
|
+
Capybara.ignore_hidden_elements = false
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'layout should have canonical tag referencing site url' do
|
14
|
+
Spree::Store.create!(code: 'spree', name: 'My Spree Store', url: 'spreestore.example.com', mail_from_address: 'test@example.com')
|
15
|
+
|
16
|
+
visit spree.root_path
|
17
|
+
expect(find('link[rel=canonical]')[:href]).to eql('http://spreestore.example.com/')
|
18
|
+
end
|
19
|
+
end
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Spree
|
4
|
+
describe FrontendHelper, type: :helper do
|
5
|
+
# Regression test for #2034
|
6
|
+
context "flash_message" do
|
7
|
+
let(:flash) { { "notice" => "ok", "foo" => "foo", "bar" => "bar" } }
|
8
|
+
|
9
|
+
it "should output all flash content" do
|
10
|
+
flash_messages
|
11
|
+
html = Nokogiri::HTML(helper.output_buffer)
|
12
|
+
expect(html.css(".alert-notice").text).to eq("ok")
|
13
|
+
expect(html.css(".alert-foo").text).to eq("foo")
|
14
|
+
expect(html.css(".alert-bar").text).to eq("bar")
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should output flash content except one key" do
|
18
|
+
flash_messages(ignore_types: :bar)
|
19
|
+
html = Nokogiri::HTML(helper.output_buffer)
|
20
|
+
expect(html.css(".alert-notice").text).to eq("ok")
|
21
|
+
expect(html.css(".alert-foo").text).to eq("foo")
|
22
|
+
expect(html.css(".alert-bar").text).to be_empty
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should output flash content except some keys" do
|
26
|
+
flash_messages(ignore_types: [:foo, :bar])
|
27
|
+
html = Nokogiri::HTML(helper.output_buffer)
|
28
|
+
expect(html.css(".alert-notice").text).to eq("ok")
|
29
|
+
expect(html.css(".alert-foo").text).to be_empty
|
30
|
+
expect(html.css(".alert-bar").text).to be_empty
|
31
|
+
expect(helper.output_buffer).to eq("<div class=\"alert alert-notice\">ok</div>")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Regression test for #2759
|
36
|
+
it "nested_taxons_path works with a Taxon object" do
|
37
|
+
taxon = create(:taxon, name: "iphone")
|
38
|
+
expect(spree.nested_taxons_path(taxon)).to eq("/t/iphone")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Spree
|
4
|
+
describe Spree::OrdersHelper, :type => :helper do
|
5
|
+
# Regression test for #2518 + #2323
|
6
|
+
it "truncates HTML correctly in product description" do
|
7
|
+
product = double(:description => "<strong>" + ("a" * 95) + "</strong> This content is invisible.")
|
8
|
+
expected = "<strong>" + ("a" * 95) + "</strong>..."
|
9
|
+
expect(truncated_product_description(product)).to eq(expected)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Spree::TaxonsHelper, :type => :helper do
|
4
|
+
# Regression test for #4382
|
5
|
+
it "#taxon_preview" do
|
6
|
+
taxon = create(:taxon)
|
7
|
+
child_taxon = create(:taxon, parent: taxon)
|
8
|
+
product_1 = create(:product)
|
9
|
+
product_2 = create(:product)
|
10
|
+
product_3 = create(:product)
|
11
|
+
taxon.products << product_1
|
12
|
+
taxon.products << product_2
|
13
|
+
child_taxon.products << product_3
|
14
|
+
|
15
|
+
expect(taxon_preview(taxon.reload)).to eql([product_1, product_2, product_3])
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
if ENV["COVERAGE"]
|
2
|
+
# Run Coverage report
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start do
|
5
|
+
add_group 'Controllers', 'app/controllers'
|
6
|
+
add_group 'Helpers', 'app/helpers'
|
7
|
+
add_group 'Mailers', 'app/mailers'
|
8
|
+
add_group 'Models', 'app/models'
|
9
|
+
add_group 'Views', 'app/views'
|
10
|
+
add_group 'Libraries', 'lib'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
15
|
+
# from the project root directory.
|
16
|
+
ENV["RAILS_ENV"] ||= 'test'
|
17
|
+
|
18
|
+
begin
|
19
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
20
|
+
rescue LoadError
|
21
|
+
puts "Could not load dummy application. Please ensure you have run `bundle exec rake test_app`"
|
22
|
+
exit
|
23
|
+
end
|
24
|
+
|
25
|
+
require 'rspec/rails'
|
26
|
+
require 'ffaker'
|
27
|
+
|
28
|
+
# Requires supporting files with custom matchers and macros, etc,
|
29
|
+
# in ./support/ and its subdirectories.
|
30
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
31
|
+
|
32
|
+
require 'database_cleaner'
|
33
|
+
|
34
|
+
if ENV["CHECK_TRANSLATIONS"]
|
35
|
+
require "spree/testing_support/i18n"
|
36
|
+
end
|
37
|
+
|
38
|
+
require 'spree/testing_support/authorization_helpers'
|
39
|
+
require 'spree/testing_support/capybara_ext'
|
40
|
+
require 'spree/testing_support/factories'
|
41
|
+
require 'spree/testing_support/preferences'
|
42
|
+
require 'spree/testing_support/controller_requests'
|
43
|
+
require 'spree/testing_support/flash'
|
44
|
+
require 'spree/testing_support/url_helpers'
|
45
|
+
require 'spree/testing_support/order_walkthrough'
|
46
|
+
require 'spree/testing_support/caching'
|
47
|
+
|
48
|
+
require 'paperclip/matchers'
|
49
|
+
|
50
|
+
if ENV['WEBDRIVER'] == 'accessible'
|
51
|
+
require 'capybara/accessible'
|
52
|
+
Capybara.javascript_driver = :accessible
|
53
|
+
else
|
54
|
+
require 'capybara/poltergeist'
|
55
|
+
Capybara.javascript_driver = :poltergeist
|
56
|
+
end
|
57
|
+
|
58
|
+
RSpec.configure do |config|
|
59
|
+
config.color = true
|
60
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
61
|
+
config.fixture_path = File.join(File.expand_path(File.dirname(__FILE__)), "fixtures")
|
62
|
+
config.infer_spec_type_from_file_location!
|
63
|
+
config.mock_with :rspec
|
64
|
+
config.raise_errors_for_deprecations!
|
65
|
+
|
66
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
67
|
+
# examples within a transaction, comment the following line or assign false
|
68
|
+
# instead of true.
|
69
|
+
config.use_transactional_fixtures = false
|
70
|
+
|
71
|
+
if ENV['WEBDRIVER'] == 'accessible'
|
72
|
+
config.around(:each, :inaccessible => true) do |example|
|
73
|
+
Capybara::Accessible.skip_audit { example.run }
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
config.before(:each) do
|
78
|
+
WebMock.disable!
|
79
|
+
if RSpec.current_example.metadata[:js]
|
80
|
+
DatabaseCleaner.strategy = :truncation
|
81
|
+
else
|
82
|
+
DatabaseCleaner.strategy = :transaction
|
83
|
+
end
|
84
|
+
# TODO: Find out why open_transactions ever gets below 0
|
85
|
+
# See issue #3428
|
86
|
+
if ActiveRecord::Base.connection.open_transactions < 0
|
87
|
+
ActiveRecord::Base.connection.increment_open_transactions
|
88
|
+
end
|
89
|
+
DatabaseCleaner.start
|
90
|
+
reset_spree_preferences
|
91
|
+
end
|
92
|
+
|
93
|
+
config.after(:each) do
|
94
|
+
DatabaseCleaner.clean
|
95
|
+
end
|
96
|
+
|
97
|
+
config.after(:each, :type => :feature) do |example|
|
98
|
+
missing_translations = page.body.scan(/translation missing: #{I18n.locale}\.(.*?)[\s<\"&]/)
|
99
|
+
if missing_translations.any?
|
100
|
+
#binding.pry
|
101
|
+
puts "Found missing translations: #{missing_translations.inspect}"
|
102
|
+
puts "In spec: #{example.location}"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
|
107
|
+
config.include FactoryGirl::Syntax::Methods
|
108
|
+
|
109
|
+
config.include Spree::TestingSupport::Preferences
|
110
|
+
config.include Spree::TestingSupport::UrlHelpers
|
111
|
+
config.include Spree::TestingSupport::ControllerRequests
|
112
|
+
config.include Spree::TestingSupport::Flash
|
113
|
+
|
114
|
+
config.include Paperclip::Shoulda::Matchers
|
115
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
shared_context 'checkout setup' do
|
2
|
+
let!(:country) { create(:country, states_required: true) }
|
3
|
+
let!(:state) { create(:state, country: country) }
|
4
|
+
let!(:shipping_method) { create(:shipping_method) }
|
5
|
+
let!(:stock_location) { create(:stock_location) }
|
6
|
+
let!(:mug) { create(:product, name: "RoR Mug") }
|
7
|
+
let!(:payment_method) { create(:check_payment_method) }
|
8
|
+
let!(:zone) { create(:zone) }
|
9
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
shared_context "custom products" do
|
2
|
+
before(:each) do
|
3
|
+
taxonomy = FactoryGirl.create(:taxonomy, :name => 'Categories')
|
4
|
+
root = taxonomy.root
|
5
|
+
clothing_taxon = FactoryGirl.create(:taxon, :name => 'Clothing', :parent_id => root.id)
|
6
|
+
bags_taxon = FactoryGirl.create(:taxon, :name => 'Bags', :parent_id => root.id)
|
7
|
+
mugs_taxon = FactoryGirl.create(:taxon, :name => 'Mugs', :parent_id => root.id)
|
8
|
+
|
9
|
+
taxonomy = FactoryGirl.create(:taxonomy, :name => 'Brands')
|
10
|
+
root = taxonomy.root
|
11
|
+
apache_taxon = FactoryGirl.create(:taxon, :name => 'Apache', :parent_id => root.id)
|
12
|
+
rails_taxon = FactoryGirl.create(:taxon, :name => 'Ruby on Rails', :parent_id => root.id)
|
13
|
+
ruby_taxon = FactoryGirl.create(:taxon, :name => 'Ruby', :parent_id => root.id)
|
14
|
+
|
15
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Ringer T-Shirt', :price => '19.99', :taxons => [rails_taxon, clothing_taxon])
|
16
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Mug', :price => '15.99', :taxons => [rails_taxon, mugs_taxon])
|
17
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Tote', :price => '15.99', :taxons => [rails_taxon, bags_taxon])
|
18
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Bag', :price => '22.99', :taxons => [rails_taxon, bags_taxon])
|
19
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Baseball Jersey', :price => '19.99', :taxons => [rails_taxon, clothing_taxon])
|
20
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Stein', :price => '16.99', :taxons => [rails_taxon, mugs_taxon])
|
21
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby on Rails Jr. Spaghetti', :price => '19.99', :taxons => [rails_taxon, clothing_taxon])
|
22
|
+
FactoryGirl.create(:custom_product, :name => 'Ruby Baseball Jersey', :price => '19.99', :taxons => [ruby_taxon, clothing_taxon])
|
23
|
+
FactoryGirl.create(:custom_product, :name => 'Apache Baseball Jersey', :price => '19.99', :taxons => [apache_taxon, clothing_taxon])
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
shared_context "product prototype" do
|
2
|
+
|
3
|
+
def build_option_type_with_values(name, values)
|
4
|
+
ot = FactoryGirl.create(:option_type, :name => name)
|
5
|
+
values.each do |val|
|
6
|
+
ot.option_values.create(:name => val.downcase, :presentation => val)
|
7
|
+
end
|
8
|
+
ot
|
9
|
+
end
|
10
|
+
|
11
|
+
let(:product_attributes) do
|
12
|
+
# FactoryGirl.attributes_for is un-deprecated!
|
13
|
+
# https://github.com/thoughtbot/factory_girl/issues/274#issuecomment-3592054
|
14
|
+
FactoryGirl.attributes_for(:base_product)
|
15
|
+
end
|
16
|
+
|
17
|
+
let(:prototype) do
|
18
|
+
size = build_option_type_with_values("size", %w(Small Medium Large))
|
19
|
+
FactoryGirl.create(:prototype, :name => "Size", :option_types => [ size ])
|
20
|
+
end
|
21
|
+
|
22
|
+
let(:option_values_hash) do
|
23
|
+
hash = {}
|
24
|
+
prototype.option_types.each do |i|
|
25
|
+
hash[i.id.to_s] = i.option_value_ids
|
26
|
+
end
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "spree/checkout/_summary.html.erb", :type => :view do
|
4
|
+
# Regression spec for #4223
|
5
|
+
it "does not use the @order instance variable" do
|
6
|
+
order = stub_model(Spree::Order)
|
7
|
+
expect do
|
8
|
+
render :partial => "spree/checkout/summary", :locals => {:order => order}
|
9
|
+
end.not_to raise_error
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
version = File.read(File.expand_path("../../SPREE_VERSION", __FILE__)).strip
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.platform = Gem::Platform::RUBY
|
6
|
+
s.name = 'spree_frontend'
|
7
|
+
s.version = version
|
8
|
+
s.summary = 'Frontend e-commerce functionality for the Spree project.'
|
9
|
+
s.description = s.summary
|
10
|
+
|
11
|
+
s.author = 'Sean Schofield'
|
12
|
+
s.email = 'sean@spreecommerce.com'
|
13
|
+
s.homepage = 'https://spreecommerce.com'
|
14
|
+
s.license = %q{BSD-3}
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.require_path = 'lib'
|
19
|
+
s.requirements << 'none'
|
20
|
+
|
21
|
+
s.add_dependency 'spree_api', version
|
22
|
+
s.add_dependency 'spree_core', version
|
23
|
+
|
24
|
+
s.add_dependency 'bootstrap-sass', '~> 3.3.1'
|
25
|
+
s.add_dependency 'canonical-rails', '~> 0.0.4'
|
26
|
+
s.add_dependency 'jquery-rails', '~> 4.0.3'
|
27
|
+
s.add_dependency 'sprockets-rails', '~> 2.2'
|
28
|
+
|
29
|
+
s.add_development_dependency 'capybara-accessible'
|
30
|
+
end
|