Fix failing specs. All specs and tests pass now.

This commit is contained in:
Eric Allen 2009-05-03 23:53:40 -04:00
parent feeca283b4
commit 96762630f2
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,8 @@
require File.dirname(__FILE__) + '/../../spec_helper'
describe "/login.m" do
describe "/login/login_mobile.html.erb" do
it "should render without an error" do
@controller.template.stub!(:set_default_external!)
render :action => 'login/login_mobile.html.erb', :layout => 'mobile.m.erb'
response.should_not have_tag("div#Application-Trace")
end

View file

@ -6,6 +6,7 @@ describe "/todos/_toggle_notes.rhtml" do
before :each do
@item = mock_model(Todo, :notes => "this is a note")
@controller.template.stub!(:apply_behavior)
@controller.template.stub!(:set_default_external!)
end
it "should render" do