Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

adapted for Spree 2 #45

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

adapted for Spree 2 #45

wants to merge 30 commits into from

Conversation

Numerico
Copy link

@Numerico Numerico commented Oct 3, 2013

Hello,
I used your extension in a Spree 2.0.4 project so had to adapt it to work with it.
I would say the main changes were to move count_on_hand and backorderable from products and variants down to stock items.
I've got all tests passing and features green in this commit.

I would be available to discuss any comments if needed.
Thanks

Numerico added 30 commits August 9, 2013 18:44
Spree::User undefined
coffee script & javascript runtime
however this throws (concurrency?) errors if run in the hook
works running it after
commits are mixed:
	count on hand tests are passing, along with product factories fixed to use a shipping category
	allow backorder preference syntax fixed, but most tests are commented
	remaining errors are caused by spree routes not available in dummy app
removed dummier (which wasn't including Spree::Core::Engine.routes http://stackoverflow.com/questions/18994172/spree-routes-not-available-in-extensions-dummy-application
using built-in rake test_app instead

idem
nox really fixed in ruby, with integration tests passing
it still needs some tweaking at the javascript level, though
upgraded factory girl
now using spree testing support factories
added missing css (empty)
mostly updating capybara syntax to css
changed _option_value_fields override to deface because wasn't working on test
only one lacking requires to fix actual code
this fixes broken intengration tests, as they expected this behaviour
querying because of no apparent easy way to override a factory
this was freaking feature 'Should show out of stock for appropriate variants'
with this, all tests and features are passing :)
explicit that we're using `rake test_app` rather than dummier
also added myself to contributors
@citrus
Copy link
Owner

citrus commented Oct 4, 2013

Hey @Numerico thanks for the PR!! I'll check it out tonight and merge it if all the tests are passing! 👍

@Numerico
Copy link
Author

Numerico commented Oct 4, 2013

all right, just FYI
you can notice the first commits were for Spree 1.2.5 (see https://github.com/Numerico/spree_variant_options/tree/spree_1.2.5, that branch has got test unit passing, but not all of cucumber's)
this would be the first commit for Spree 2 Numerico@60f4a04

@jarrodpayne
Copy link

@Numerico Is this working?

@Numerico
Copy link
Author

yeah, you should be able to run the tests with

bundle exec rake

@jarrodpayne
Copy link

Awesome! Thank you.

@jhirbour
Copy link

Is this going to become a 2-1-stable branch for use with Spree 2.1?

@Numerico
Copy link
Author

Hopefully, shouldn't change much from 2.0.4 to 2.1, should it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants