-
-
Notifications
You must be signed in to change notification settings - Fork 807
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
Moved polyamorous from gem to a module #1105
Changes from all commits
ba68b1b
3cf61e4
35ea028
67f45c1
a900766
9a27fbb
cccffe4
a8e9732
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# active_record_6.0_ruby_2/join_association | ||
require 'polyamorous/activerecord_5.2_ruby_2/join_association' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# active_record_6.0_ruby_2/reflection.rb | ||
require 'polyamorous/activerecord_5.2_ruby_2/reflection' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# active_record_6.1_ruby_2/join_association | ||
require 'polyamorous/activerecord_6.0_ruby_2/join_association' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# active_record_6.1_ruby_2/join_dependency.rb | ||
require 'polyamorous/activerecord_6.0_ruby_2/join_dependency' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# active_record_6.1_ruby_2/reflection.rb | ||
require 'polyamorous/activerecord_6.0_ruby_2/reflection' |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require 'machinist/active_record' | ||
require 'polyamorous/polyamorous.rb' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need the specs from the Polyamorous gem added and passing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @seanfcarroll - All files are covered with the specs and coverage is 100%, let me know the file and line which is not covered with the spec. Thanks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please add in the code missing from here https://github.com/activerecord-hackery/polyamorous/blob/master/spec/polyamorous/join_association_spec.rb#L20-L37 Also, please move the Polyamorous tests under their own folder (at the same level as Ransack). Thank you. :-) |
||
require 'sham' | ||
require 'faker' | ||
require 'ransack' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add an a test where the data for this condition is created, and we check that the output is the same across each version of AR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried but i couldn't find a way to change the dynamically change the version of AR. But i have tested with different versions without spec, it's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shadabmalik1310 the way to do this would to: