Skip to content

Commit

Permalink
fixing tests for the last commit, doo.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Oct 12, 2011
1 parent c21d34d commit 69c90cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/render_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -60,7 +60,7 @@ def squeak
setup do
@mum.instance_eval do
def squeak
emit
render
end
end
end
Expand All @@ -74,7 +74,7 @@ def squeak
setup do
@mum.instance_eval do
def squeak
emit :view => :eating
render :view => :eating
end
end
end
Expand Down
6 changes: 0 additions & 6 deletions test/widget_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69c90cc

Please sign in to comment.