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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
ca05ea6b
Commit
ca05ea6b
authored
Jun 07, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove knapsack_merger since we don't use it anyway
parent
59376bb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
42 deletions
+0
-42
spec/knapsack_merger.rb
spec/knapsack_merger.rb
+0
-41
spec/spec_helper.rb
spec/spec_helper.rb
+0
-1
No files found.
spec/knapsack_merger.rb
deleted
100644 → 0
View file @
59376bb3
begin
class
Knapsack::Report
alias_method
:save_without_leading_existing_report
,
:save
def
load_existing_report
Knapsack
::
Presenter
.
existing_report
=
open
rescue
false
end
def
save
load_existing_report
save_without_leading_existing_report
end
end
class
<<
Knapsack
::
Presenter
attr_accessor
:existing_report
def
initialize
@existing_report
=
[]
end
def
report_hash
return
current_report_hash
unless
existing_report
existing_report
.
merge
(
current_report_hash
).
sort
.
to_h
end
def
current_report_hash
Knapsack
.
tracker
.
test_files_with_time
end
def
report_yml
report_hash
.
to_yaml
end
def
report_json
JSON
.
pretty_generate
(
report_hash
)
end
end
end
spec/spec_helper.rb
View file @
ca05ea6b
...
...
@@ -16,7 +16,6 @@ require 'shoulda/matchers'
require
'sidekiq/testing/inline'
require
'rspec/retry'
require
'knapsack'
require_relative
'knapsack_merger'
Knapsack
::
Adapters
::
RSpecAdapter
.
bind
...
...
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