-
Notifications
You must be signed in to change notification settings - Fork 90
Add option to skip creating the default index on the token attribute. #73
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
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -68,6 +68,16 @@ | |
| end | ||
| end | ||
|
|
||
| describe "skip_index" do | ||
|
Collaborator
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. Inconsistent indentation detected. |
||
| it "should be an option" do | ||
| expect(Mongoid::Token::Options.new({:skip_index => true}).skip_index?).to eq true | ||
|
Collaborator
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. Line is too long. [87/80] |
||
| end | ||
|
|
||
| it "should default to false" do | ||
| expect(Mongoid::Token::Options.new.skip_index?).to eq false | ||
| end | ||
| end | ||
|
Collaborator
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.
|
||
|
|
||
| describe "id" do | ||
| context "when true" do | ||
| it "returns '_id' sa the field name" do | ||
|
|
||
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.
Line is too long. [112/80]
Redundant curly braces around a hash parameter.
Use the new Ruby 1.9 hash syntax.
Redundant
selfdetected.