fiveruns_tuneup 0.8.15 → 0.8.16
Sign up to get free protection for your applications and to get access to all the features.
- data/fiveruns_tuneup.gemspec +3 -3
- data/lib/fiveruns/tuneup/step.rb +2 -1
- data/lib/fiveruns/tuneup/version.rb +1 -1
- data/test/test_helper.rb +16 -1
- data/test/tuneup_test.rb +25 -0
- data/views/tuneup/_data.html.erb +1 -1
- metadata +2 -2
data/fiveruns_tuneup.gemspec
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Fiveruns_tuneup-0.8.
|
2
|
+
# Gem::Specification for Fiveruns_tuneup-0.8.16
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
--- !ruby/object:Gem::Specification
|
6
6
|
name: fiveruns_tuneup
|
7
7
|
version: !ruby/object:Gem::Version
|
8
|
-
version: 0.8.
|
8
|
+
version: 0.8.16
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- FiveRuns Development Team
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
|
15
|
-
date: 2008-09-
|
15
|
+
date: 2008-09-15 00:00:00 -05:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
data/lib/fiveruns/tuneup/step.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,3 +1,18 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'test/unit'
|
3
|
-
require '
|
3
|
+
require 'shoulda'
|
4
|
+
require 'active_support'
|
5
|
+
|
6
|
+
require File.join(File.dirname(__FILE__), '../lib/fiveruns_tuneup')
|
7
|
+
|
8
|
+
class Test::Unit::TestCase
|
9
|
+
|
10
|
+
def create_test_runs!
|
11
|
+
10.times do |i|
|
12
|
+
run_id = Fiveruns::Tuneup.runs(i, Time.now)
|
13
|
+
persist(run_id, {}, {}, {})
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
data/test/tuneup_test.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TuneupTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context 'The TuneUp MEGA-OBJECT' do
|
6
|
+
|
7
|
+
context 'looking up runs' do
|
8
|
+
|
9
|
+
should 'find the latest runs for a URI' do
|
10
|
+
create_test_runs!
|
11
|
+
|
12
|
+
runs = Fiveruns::Tuneup.runs_for_uri(@uri)
|
13
|
+
|
14
|
+
assert_equal @runs.length, runs.length
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
should_eventually 'generate a filename for a run'
|
20
|
+
|
21
|
+
should_eventually 'generate a run ID'
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
data/views/tuneup/_data.html.erb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<div id='tuneup-top'>
|
3
3
|
<div id='tuneup-summary'>
|
4
4
|
<%= tuneup_bar(tuneup_data.children.first, :id => 'tuneup-root-bar') %>
|
5
|
-
<%= trend
|
5
|
+
<%= link_to trend + tuneup_data.time.to_i, '#' %> ms
|
6
6
|
</div>
|
7
7
|
<%= link_to_upload %>
|
8
8
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fiveruns_tuneup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FiveRuns Development Team
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-09-
|
12
|
+
date: 2008-09-15 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|