test/recipe_test.rb in fiveruns-dash-ruby-0.7.6 vs test/recipe_test.rb in fiveruns-dash-ruby-0.8.0
- old
+ new
@@ -134,10 +134,11 @@
#######
private
#######
def assert_metrics(*names)
- assert_equal names.sort, config.metrics.map(&:name).map(&:to_s).sort
+ assert_equal names.sort,
+ config.metrics.map { |m| m.name }.map { |m| m.to_s }.sort
end
def recipe(name = :test, options = {:url => 'http://test.com'}, &block)
Fiveruns::Dash.register_recipe(name, options, &block)
end
\ No newline at end of file