Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
46d2d63f
Commit
46d2d63f
authored
5 years ago
by
ねず
Committed by
Andrew W. Lee
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BigDecimal.new (#634)
`BigDecimal.new` is deprecated in future version of Ruby in favor of using `BigDecimal(...)`.
parent
5ac56e47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
annotate_models_spec.rb
spec/annotate/annotate_models_spec.rb
+2
-2
No files found.
spec/annotate/annotate_models_spec.rb
View file @
46d2d63f
...
...
@@ -70,8 +70,8 @@ describe AnnotateModels do # rubocop:disable Metrics/BlockLength
it
{
expect
(
AnnotateModels
.
quote
(
25
)).
to
eql
(
'25'
)
}
it
{
expect
(
AnnotateModels
.
quote
(
25.6
)).
to
eql
(
'25.6'
)
}
it
{
expect
(
AnnotateModels
.
quote
(
1
e
-
20
)).
to
eql
(
'1.0e-20'
)
}
it
{
expect
(
AnnotateModels
.
quote
(
BigDecimal
.
new
(
'1.2'
))).
to
eql
(
'1.2'
)
}
it
{
expect
(
AnnotateModels
.
quote
([
BigDecimal
.
new
(
'1.2'
)])).
to
eql
([
'1.2'
])
}
it
{
expect
(
AnnotateModels
.
quote
(
BigDecimal
(
'1.2'
))).
to
eql
(
'1.2'
)
}
it
{
expect
(
AnnotateModels
.
quote
([
BigDecimal
(
'1.2'
)])).
to
eql
([
'1.2'
])
}
describe
'#parse_options'
do
let
(
:options
)
do
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment