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

Bump spree print invoice to Solidus. #1

Merged
merged 14 commits into from May 2, 2016

Conversation

Senjai
Copy link
Contributor

@Senjai Senjai commented Apr 27, 2016

No description provided.

So as to be able to generate a dummy app properly.
These tests and files don't _really_ test anything. Or offer us any
value
Specs for this gem must not have been ran in ages. I haven't seen a spec
helper like this. We're going to replace it with one that we're used too
for extensions.
These are required for the spree dummy app generator. It absolutely
requires these files to exist. Solidus' generator keeps them optional in
the dummy app.
For some reason, this just passed in a Sprockets::Asset which prawn
can't resolve. It expects a filename.
These are our standard dependencies for when we write specs, most of
them assist us with feature testing.
Our application depends on deface. Without this require it does not
behave properly in the test environment.
Verify we can change the print invoice settings.
We shouldn't really test the content of the PDF here. We'd essentially
be testing Prawn, and while view specs are something we can do we don't
normally go through the effort.

Here we're just verifying that the PDF can be generated without error
and with the correct status code and headers.
click_link "Configuration"

select "Times Roman", from: "print_invoice_font_face"
fill_in "print_invoice_next_number", with: "150"
Copy link

@Sinetheta Sinetheta Apr 28, 2016

Choose a reason for hiding this comment

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

Maybe use the words of the label instead of the name of the field to target the input?

fill_in("Next Invoice Number", with: "150")

@Sinetheta
Copy link

👍

@Senjai Senjai merged commit 7a28c99 into solidusio-contrib:master May 2, 2016
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.

None yet

2 participants