Skip to content
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

Allow flexible separator for promotion code #1951

Merged
merged 2 commits into from
May 23, 2017

Conversation

ericgross
Copy link
Contributor

Rather than always seperating the promotion base_code from the suffix
with an underscore (_), allow a seperator to be specified.

@ericgross ericgross force-pushed the promotion_seperator branch from ee0d120 to 61f2da6 Compare May 23, 2017 13:26
Copy link
Contributor

@jordan-brough jordan-brough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I left one small comment.

context "with a successful build" do
before do
allow(Spree::PromotionCodeBatchMailer)
.to receive(:promotion_code_batch_finished)
.and_call_original
.and_call_original
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidental change here?

Rather than always seperating the promotion base_code from the suffix
with an underscore (_), allow a seperator to be specified.
Copy link
Member

@gmacdougall gmacdougall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Looks good to me. Thanks for the contribution!

@jordan-brough jordan-brough merged commit a4eb201 into solidusio:master May 23, 2017
@ericgross ericgross deleted the promotion_seperator branch May 23, 2017 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants