Skip to content

Commit

Permalink
Removed tests for view assigns.
Browse files Browse the repository at this point in the history
We decided that it really isn't needed because. Since
y ou test the view at the same time as the controller you don't
need view_assigns()/assigns().
  • Loading branch information
docwhat committed Sep 28, 2011
1 parent a281b53 commit c0872c7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec/rspec-apotomo/widget_example_group_spec.rb
Expand Up @@ -70,22 +70,6 @@ def apotomo_event_path(*args)
trigger(:doo, :dummy).should == ["unexpected string"]
end
end

context "- #view_assigns" do
has_widgets do |root|
root << widget(:dummy)
end

it "gets the widget controller variables" do
DummyWidget.class_eval do
def show
@user = "Justin"
end
end
render_widget(:dummy, :show)
view_assigns[:user].should == "Justin"
end
end
end
end
end

0 comments on commit c0872c7

Please sign in to comment.