Skip to content

Commit

Permalink
Spec file seems to be missing from other branch, something to do with…
Browse files Browse the repository at this point in the history
… netbeans
  • Loading branch information
baphled committed Jun 19, 2010
1 parent 363f68b commit 2c4e384
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions spec/controllers/application_controller_spec.rb
@@ -0,0 +1,26 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe ApplicationController do

controller_name :projects

describe "GET, new" do
it "should render the no sidebar layout" do
get :new
response.should use_layout("no_sidebar")
end
end

describe "POST, create" do
before(:each) do
@project = mock_model(Project).as_new_record.as_null_object
@project.stub!(:save).and_return false
Project.stub!(:new).and_return @project
end

it "should render the no sidebar layout" do
post :create
response.should use_layout("no_sidebar")
end
end
end

0 comments on commit 2c4e384

Please sign in to comment.