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 user to specify a default sorting order in the rails helper #79

Merged
merged 1 commit into from Mar 19, 2014

Conversation

stbenjam
Copy link
Contributor

In some cases, the user may want the sort link to go to descending order first.

@wvanbergen
Copy link
Owner

This looks good to me. Maybe you can add a test that covers this feature?
@abenari what do you think?

@abenari
Copy link
Collaborator

abenari commented Mar 17, 2014

👍 Looks good to me.

@stbenjam
Copy link
Contributor Author

@wvanbergen Hmm, I could write a test, but rails_helper isn't tested today -- I'd probably need to stub out every single method call inside sort because they're all from rails ActionView. What do you think?

wvanbergen added a commit that referenced this pull request Mar 19, 2014
Allow user to specify a default sorting order in the rails helper
@wvanbergen wvanbergen merged commit 5c7fa86 into wvanbergen:master Mar 19, 2014
@wvanbergen
Copy link
Owner

Stubbing out ActionView helpers is pretty shitty, but it turned out to be not too bad. I added a basic spec for the helper: d3776a4

Could you add a basic spec for the :default behavior you added?

@stbenjam
Copy link
Contributor Author

Absolutely! Opened #82

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

3 participants