Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
25c14848
Commit
25c14848
authored
Mar 10, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RawUsageData model specs
parent
a77239f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
spec/models/raw_usage_data_spec.rb
spec/models/raw_usage_data_spec.rb
+8
-2
No files found.
spec/models/raw_usage_data_spec.rb
View file @
25c14848
...
...
@@ -13,14 +13,20 @@ RSpec.describe RawUsageData do
it
{
is_expected
.
to
validate_uniqueness_of
(
:recorded_at
)
}
end
describe
'#update_
sent_at
!'
do
describe
'#update_
version_metadata
!'
do
let
(
:raw_usage_data
)
{
create
(
:raw_usage_data
)
}
it
'updates sent_at'
do
raw_usage_data
.
update_
sent_at!
raw_usage_data
.
update_
version_metadata!
(
usage_data_id:
123
)
expect
(
raw_usage_data
.
sent_at
).
not_to
be_nil
end
it
'updates version_usage_data_id_value'
do
raw_usage_data
.
update_version_metadata!
(
usage_data_id:
123
)
expect
(
raw_usage_data
.
version_usage_data_id_value
).
not_to
be_nil
end
end
end
end
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