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

Refactor RSpec for AnnotateModels (3) - AnnotateModels.get_schema_info (with custom options) #732

Merged

Conversation

nard-tech
Copy link
Collaborator

@nard-tech nard-tech commented Jan 20, 2020

I refactored test cases of AnnotateModels with custom options.

@nard-tech
Copy link
Collaborator Author

I will refactor test cases of AnnotateModels without custom options in another PR.

@nard-tech
Copy link
Collaborator Author

@reviewers
Please check changes commit by commit.
I recommend you to use option "Hide whitespace changes".

@drwl drwl self-requested a review January 20, 2020 18:35
@drwl
Copy link
Collaborator

drwl commented Jan 20, 2020

@reviewers
Please check changes commit by commit.
I recommend you to use option "Hide whitespace changes".

Taking a look now. Good tip on Hide whitespace changes 👍 a lot easier to see

Copy link
Collaborator

@drwl drwl 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
nice

end
end

context 'when "hide_default_column_types" is "skip"' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Reviewing this is interesting. I think there's a drift between test code and what we display in options from lib/annotate/parser.rb

@drwl drwl merged commit 1b51de8 into ctran:develop Jan 20, 2020
@nard-tech nard-tech deleted the feature/refactor_annotate_models/rspec/clean_v3 branch January 20, 2020 19:01
vfonic pushed a commit to vfonic/annotate_models that referenced this pull request May 8, 2020
* Structuralize RSpec test cases of AnnotateModels.get_schema_info (with custom options)

* Replace expression expansion to plain text

* Refactor RSpec test cases of AnnotateModels.get_schema_info (with custom options)

* Change position of test cases
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.

2 participants