-
Notifications
You must be signed in to change notification settings - Fork 10
Fix/person question sets array #23
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
Conversation
13263f7 to
8df17e4
Compare
test/factories.rb
Outdated
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.
Style/CollectionMethods: Prefer map over collect.
daf4e25 to
53ee411
Compare
test/factories.rb
Outdated
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.
Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
06d9c39 to
723e402
Compare
spec/factories.rb
Outdated
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.
Style/SpaceInsideBlockBraces: Space missing inside }.
7bddfa5 to
3f3e142
Compare
Currently devtools is adding the rspec-its dependency, but only for rubies >= 2.1, so we add our own explicit dependency in our gemspec for earlier rubies
Lets you specify how many question set ids should come with the person resource you are creating
b60fb2e to
9911cf2
Compare
lib/blockscore/collection.rb
Outdated
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.
Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
spec/unit/blockscore/actions_spec.rb
Outdated
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.
Style/SpaceInsideBlockBraces: Space missing inside {.
Refactors specs related to collection from question sets to separate spec and moves some member related specs out of collection specs. Still requires more specs on Member to raise mutant coverage. It also renames the Base#saved? to Base#persisted?.
b46e959 to
a4dd8e1
Compare
36a6c5e to
28d55e5
Compare
28d55e5 to
999a725
Compare
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.
pry
|
In general we try to follow the best practices for rspec. Mainly I'd recommend checking out https://github.com/howaboutwe/rspec-style-guide http://betterspecs.org/. A few specific points I would point out:
|
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.
Style/Documentation: Missing top-level module documentation comment.
bcdb257 to
59b6a29
Compare
Fix/person question sets array
|
LGTM |
Failing test for issue mentioned in #22. Good to go @DelmerGA