Permalink
Browse files

fixing specs

  • Loading branch information...
1 parent 1416a98 commit c0d815a32a5be25401de7b363795caec2b2c0d78 Sergei Kozlov committed Sep 21, 2010
Showing with 6 additions and 7 deletions.
  1. +1 −1 .autotest
  2. +2 −3 autotest/discover.rb
  3. +3 −3 spec/widget/aggregation_spec.rb
View
@@ -1 +1 @@
-require 'autotest/redgreen'
+# require 'autotest/redgreen'
View
@@ -1,3 +1,2 @@
-Autotest.add_discovery do
- "rails"
-end
+Autotest.add_discovery { "rails" }
+Autotest.add_discovery { "rspec2" }
@@ -13,7 +13,7 @@ def self.config
})
end
- def initial_aggregatees
+ def aggregatees
{
:nested_one => {:class_name => 'NestedWidgetOne'},
:nested_two => {:class_name => 'NestedWidgetTwo'}
@@ -36,15 +36,15 @@ class NestedWidgetOne < Widget::Base
end
class NestedWidgetTwo < Widget::Base
- def initial_aggregatees
+ def aggregatees
{
:nested => {:class_name => 'DeepNestedWidget'}
}
end
end
class DeepNestedWidget < Widget::Base
- def initial_aggregatees
+ def aggregatees
{
:nested => {:class_name => "VeryDeepNestedWidget"}
}

0 comments on commit c0d815a

Please sign in to comment.