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

Add skip display none #174

Closed
wants to merge 1 commit into from
Closed

Add skip display none #174

wants to merge 1 commit into from

Conversation

tangrufus
Copy link
Contributor

Resolve #173

@tangrufus
Copy link
Contributor Author

I don't know why github shows 16 commits.
Only the last few commits are mine.

@justin808
Copy link
Member

@tangrufus The reason is that you did not sync up your remote to our latest.

Please sync up, and rebase your commits to one. Thanks.

dom_id: dom_id
})
component_specification_tag_options = {
class: "js-react-on-rails-component",
Copy link
Member

Choose a reason for hiding this comment

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

Please remove any extraneous whitespace changes.

@tangrufus
Copy link
Contributor Author

rebased & :skip_display_none should be set in initializer now

@justin808
Copy link
Member

@tangrufus
Copy link
Contributor Author

Passed the tests finally.

expect_turbolinks: turbolinks_loaded,
dom_id: dom_id
})
content_tag(:div,
Copy link
Member

Choose a reason for hiding this comment

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

why the whitespace change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was a mistake

@justin808
Copy link
Member

  • Need test verifying that the configuration option works
  • No whitespace or other unnecessary changes like file mode changes. See the changed files tab of the PR.

Thanks! Looks great overall.

@tangrufus
Copy link
Contributor Author

How do you test the initializer config?
Do you prefer a new dummy app or other measure?

@justin808
Copy link
Member

I think you can probably use a capybara test and set the initial value at the beginning of the test.

Take a look at https://github.com/shakacode/react_on_rails/blob/master/spec/dummy/spec/features/integration_spec.rb#L100

@justin808
Copy link
Member

@tangrufus If you can get a spec in, I'll merge this.

@robwise
Copy link
Contributor

robwise commented Jan 8, 2016

@tangrufus Easiest way would be to add it to the spec/dummy app as an integration test

@samnang
Copy link
Contributor

samnang commented Jan 8, 2016

@tangrufus I think you have one test to test the default value of the option here https://github.com/shakacode/react_on_rails/blob/master/spec%2Freact_on_rails%2Fconfiguration_spec.rb and put another test under dummy app to verify the feature is working as expected.

@justin808
Copy link
Member

@tangrufus We can put this one in after we release 2.0 if that's OK with you. We need a test for this.

@tangrufus
Copy link
Contributor Author

Sorry for the delay.
I am inexperienced with tests.

Does anyone can help writing the tests?

@justin808 No problem. Merge only if you think it's ready.

@justin808
Copy link
Member

@tangrufus Once this PR is rebased on top of master and has a few tests, we'll merge.

@aaronvb
Copy link
Member

aaronvb commented Jan 21, 2016

@tangrufus Not sure where you are with this but I can help with writing the tests.

@justin808
Copy link
Member

@aaronvb, go ahead!

@tangrufus
Copy link
Contributor Author

Thanks @aaronvb

@aaronvb
Copy link
Member

aaronvb commented Jan 21, 2016

@tangrufus @justin808 What's the best way for me to work on the tests other than giving me access to your repo?

@justin808
Copy link
Member

@aaronvb merge @tangrufus change onto a branch for @shakacode and continue from there.

@aaronvb
Copy link
Member

aaronvb commented Jan 22, 2016

@justin808
Copy link
Member

Please create a PR and let me know when it's ready for merge, @aaronvb. Thanks!! 👏

@tangrufus
Copy link
Contributor Author

closing this in favour of #218

@tangrufus tangrufus closed this Jan 22, 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.

5 participants