Skip to content

Commit

Permalink
Cosmetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
louismullie committed Sep 28, 2012
1 parent 070f183 commit 5a4f702
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions spec/workers/language.rb
Expand Up @@ -6,9 +6,8 @@ class Language

# Headings for the list of workers table.
BenchmarkHeadings =
['Method', 'Worker',
'Description', 'Reference',
'User time', 'System time',
['Method', 'Worker', 'Description',
'Reference', 'User time', 'System time',
'Real time', 'Accuracy']

# Add the language to the list,
Expand All @@ -17,11 +16,9 @@ def self.inherited(base)
@@list << base
base.class_eval do
def initialize(mode)
@language = cl(
self.class).downcase
@scenarios = self.class.
const_get(:Scenarios)
@mode = mode
klass = self.class.const_get(:Scenarios)
@scenarios, @mode = klass, mode
@language = cl(self.class).downcase
end
end
end
Expand Down Expand Up @@ -101,8 +98,7 @@ def run_scenarios_as_benchmarks(worker, group)
# Run examples as specs on each
# of the worker's target entities.
def run_scenarios_as_specs(worker, group)
run_scenarios_for_all_workers(
worker, group, 'spec')
run_scenarios_for_all_workers(worker, group, 'spec')
end

# Run a scenario (i.e. spec or benchmark
Expand Down

0 comments on commit 5a4f702

Please sign in to comment.