Permalink
Browse files

fixing tests for the last commit, doo.

  • Loading branch information...
1 parent c21d34d commit 69c90cc6d56db9638f03bc6af5a2d393c92b8183 @apotonick committed Oct 12, 2011
Showing with 4 additions and 10 deletions.
  1. +4 −4 test/render_test.rb
  2. +0 −6 test/widget_test.rb
View
@@ -41,12 +41,12 @@ def educate
assert_equal 'If you see the cat do run away!', @mum.invoke(:educate)
end
- context "with #emit" do
+ context "with #render" do
context "and :text" do
setup do
@mum.instance_eval do
def squeak
- emit :text => "squeak();"
+ render :text => "squeak();"
end
end
end
@@ -60,7 +60,7 @@ def squeak
setup do
@mum.instance_eval do
def squeak
- emit
+ render
end
end
end
@@ -74,7 +74,7 @@ def squeak
setup do
@mum.instance_eval do
def squeak
- emit :view => :eating
+ render :view => :eating
end
end
end
View
@@ -105,12 +105,6 @@ class WidgetTest < ActiveSupport::TestCase
assert_equal @mum.name, @mum.widget_id
end
- should "mark #param as deprecated" do
- assert_raises RuntimeError do
- @mum.param(:volume)
- end
- end
-
should "respond to DEFAULT_VIEW_PATHS" do
assert_equal ["app/widgets"], Apotomo::Widget::DEFAULT_VIEW_PATHS
end

0 comments on commit 69c90cc

Please sign in to comment.