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

Update test files #28

Merged
merged 5 commits into from
Jun 6, 2019

Conversation

jtapia
Copy link
Contributor

@jtapia jtapia commented May 14, 2019

No description provided.

@jtapia jtapia force-pushed the chore/update_test_files branch 4 times, most recently from e26fb3d to f66a109 Compare May 14, 2019 08:30
Copy link
Contributor

@aitbw aitbw left a comment

Choose a reason for hiding this comment

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

Hey @jtapia, thanks a lot for this PR! ❤️ I have some comments I'd like to discuss first before approval:

  • Is there any specific reason to support Solidus v1.3 and lower? And even if there's a need for that, I think that change is out of this PR's scope (given its title), what do you think?

  • I'm ok with moving the specs under a spree folder, but I don't know if that's what we want given that solidus_auth_devise does not follow this convention; maybe @kennyadsl, @jacobherrington or @tvdeyen can shed some light on this

  • I don't know if the new file structure is something we want —for sure the updated Rakefile is needed, but I don't feel the same about the support folder, considering several Solidus extensions are using Solidus Support helpers already, and they include most of the stuff needed to run the specs

Thanks once again, and please, feel free to share your thoughts! ☺️

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Thanks. I am fine with the changes. The files were most likely moved to reflect the folder structure of the files under test. Some text editor extensions have plugins that help to switch from test to implementation. For that to work the file structure needs to match.

Also the support folder is a common thing in RSpec. Doesn’t have to do anything with Solidus support IMO.

@jtapia
Copy link
Contributor Author

jtapia commented May 23, 2019

Hi @aitbw, thanks for your comments, I considered the original support versions, but if you think that we should only support from 2.X, I can do the change

@kennyadsl
Copy link
Member

I'm fine with the changes as well, but I think we should only take into account supported versions (2.4+) and try to use solidus_support helpers as much as possible in extensions.

@jtapia jtapia force-pushed the chore/update_test_files branch 2 times, most recently from 4269be8 to 91c4807 Compare May 27, 2019 17:16
@kennyadsl
Copy link
Member

@jtapia I think you also have to update the travis matrix and remove the v1.3 conditional code

@jtapia jtapia force-pushed the chore/update_test_files branch 5 times, most recently from 5297104 to 414514c Compare May 29, 2019 05:12
@jtapia
Copy link
Contributor Author

jtapia commented May 29, 2019

@kennyadsl done

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

@jtapia thanks for the PR! I left some comments and I would also ask you to clean commits up a little bit. Maybe some of them could be grouped together?

app/views/spree/admin/pages/_form.html.erb Outdated Show resolved Hide resolved
spec/support/capybara.rb Outdated Show resolved Hide resolved
@jtapia
Copy link
Contributor Author

jtapia commented May 29, 2019

@kennyadsl I grouped some commits, let me know if you need any other change

spec/spec_helper.rb Outdated Show resolved Hide resolved
@jtapia jtapia force-pushed the chore/update_test_files branch 2 times, most recently from 0390c73 to 78dbd79 Compare May 29, 2019 22:01
@jtapia
Copy link
Contributor Author

jtapia commented May 29, 2019

@kennyadsl I made this change https://github.com/solidusio-contrib/solidus_static_content/pull/28/files#diff-93830fa29d616f7c87903d08b5b1b29aR12 and remove all the extra files that now is provided by solidus_support/extension/feature_helper, what do you think?

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks, last question and we are good to go!

spec/spec_helper.rb Outdated Show resolved Hide resolved
@jtapia
Copy link
Contributor Author

jtapia commented Jun 4, 2019

@kennyadsl I tackled the latest comments, let me know what do you think, thanks

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks!

@jtapia jtapia force-pushed the chore/update_test_files branch 3 times, most recently from 791c4d8 to 408fbcc Compare June 5, 2019 19:48
@kennyadsl kennyadsl merged commit 63fd70d into solidusio-contrib:master Jun 6, 2019
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

4 participants