-
Notifications
You must be signed in to change notification settings - Fork 21
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
Specs & Integration for ActiveRecord and ROM #37
Merged
Changes from 25 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
162bcbb
WIP
nesaulov 9673e7d
[ActiveRecord] add tests for scopes
nesaulov 4d56ce8
[ActiveRecord] Finish specs for AR
nesaulov 3d53bc2
Clean up a bit
nesaulov 328915e
Add gemfile for ruby 2.2
nesaulov b5a2c08
Add tweaks for AR 4.2 & ruby 2.2.0
nesaulov ad20095
Fix :policeman: configuration (maybe)
nesaulov 6ace23a
Switch from rake rubocop task to hound ci
nesaulov d2f5ec7
[ActiveRecord] Add specs for scopes & associations for `Model.surreal…
nesaulov e9e5a31
[ActiveRecord] Fix NoMethodError message
nesaulov e41c380
[ActiveRecord] Fix NoMethodError | NameError situation
nesaulov 52c8eb4
[ROM] Setup
nesaulov 63961d1
Merge branch 'master' into orm_specs
nesaulov a463b68
[ROM] Implement & add a spec for instance serialization via ROM::Struct
nesaulov 640bc40
[ROM] Fix ruby 2.2.0 issue
nesaulov 1bbfa54
Merge branch 'master' into orm_specs
nesaulov b3b7a42
Introduce spec/support and shared contexts
nesaulov a792ec7
[ActiveRecord] improve specs a bit
nesaulov 92bb6ff
Merge branch 'master' into orm_specs
nesaulov 4558ac3
Merge branch 'master' into orm_specs
nesaulov f639b18
Merge branch 'master' into orm_specs
nesaulov fa52e9d
Patch ValueAssigner in a bit nasty way
nesaulov 7437e81
Revert changes in ValueAssigner and mess up Builder again
nesaulov 523d3ef
Merge branch 'master' into orm_specs
nesaulov bdde281
[ROM] Improve instances spec
nesaulov ef46072
Add workaround for Rubocop bug
nesaulov 502ce4c
[ROM] Add collection specs
nesaulov 5e15067
Refactor Builder
nesaulov 04a12d7
Minor refactoring
nesaulov 131b3c7
Merge branch 'master' into orm_specs
nesaulov 9733bb6
Move `Schema` to `Builder`
nesaulov de2a0a7
Add specs for ROM class without schema
nesaulov 9c3bc02
add spec to cover grandchild delegation subtleties
AlessandroMinali 1e7a976
Merge pull request #49 from AlessandroMinali/orm_specs
nesaulov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This will probably cause undesired behavior with ROM(?)
Probably need similar spec for ROM similar to this one.
surrealist/spec/build_schema_spec.rb
Lines 192 to 198 in 0a8a7ad
I guess this brings up the problem of what is the minimum expected behaviour we want to test since we are not fully replicating all tests for each ORM.
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've added such spec. Talking about minimal behaviour to test, I think that ROM is pretty much covered right now, though it may seem that there are not so many examples there. AR tests are pretty massive because of scopes