Conversation
| module Mongoid | ||
| module Enum | ||
| VERSION = "0.4.0" | ||
| VERSION = '0.4.0' |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
| @@ -1 +1 @@ | |||
| require "bundler/gem_tasks" | |||
| require 'bundler/gem_tasks' | |||
There was a problem hiding this comment.
Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
| it 'yields configuration if block is given' do | ||
| expect { |b| Mongoid::Enum.configure &b } | ||
| .to yield_with_args Mongoid::Enum.configuration | ||
| .to yield_with_args Mongoid::Enum.configuration |
There was a problem hiding this comment.
Layout/DotPosition: Place the . on the previous line, together with the method call receiver.
| describe ".configure" do | ||
| it "yields configuration if block is given" do | ||
| describe '.configure' do | ||
| it 'yields configuration if block is given' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
|
|
||
| describe ".configure" do | ||
| it "yields configuration if block is given" do | ||
| describe '.configure' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
| it "uses the first value" do | ||
| describe 'default values' do | ||
| context 'when not specified' do | ||
| it 'uses the first value' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
| context "when not specified" do | ||
| it "uses the first value" do | ||
| describe 'default values' do | ||
| context 'when not specified' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
| describe "default values" do | ||
| context "when not specified" do | ||
| it "uses the first value" do | ||
| describe 'default values' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
| context "and more than one document" do | ||
| it "returns all documents with those values" do | ||
| context 'and more than one document' do | ||
| it 'returns all documents with those values' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
|
|
||
| context "and more than one document" do | ||
| it "returns all documents with those values" do | ||
| context 'and more than one document' do |
There was a problem hiding this comment.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
wladimirgramacho
left a comment
There was a problem hiding this comment.
I currently created a fork for my company just to update the gem version, so it'd be very good if we could update it in the main repo
|
@thetron could you take a look at this? |
Updated the mongoid gem version for a better compatibility for the new versions.