title: Failure/Error: response.should render_template(:new) expecting <"new"> but rendering with <"">
body: <p><strong>posts_controller.rb</strong></p>
  
  <pre><code>class PostsController &lt; ApplicationController
    respond_to :html, :xml, :json  
    before_filter :authenticate_user!, :except =&gt; [:show, :index]
    before_filter :admin_only, :except =&gt; [:show, :index]
  
    def new
     @post = Post.new
    end
  end
  </code></pre>
  
  <p><strong>spec_helper.rb</strong></p>
  
  <pre><code># This file is copied to spec/ when you run 'rails generate rspec:install'
  ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'
  require 'forgery'
  require 'populators'
  
  # Requires supporting ruby files with custom matchers and macros, etc,
  # in spec/support/ and its subdirectories.
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
  
  RSpec.configure do |config|
    config.mock_with :rspec
  
    # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
    config.fixture_path = "#{::Rails.root}/test/fixtures"
  
    config.before(:suite) do
      DatabaseCleaner.strategy = :truncation
    end
  
    config.after(:suite) do
      DatabaseCleaner.clean
    end
  
    # If you're not using ActiveRecord, or you'd prefer not to run each of your
    # examples within a transaction, remove the following line or assign false
    # instead of true.
    config.use_transactional_fixtures = false
  end
  </code></pre>
  
  <p><strong>posts_controller_spec.rb</strong></p>
  
  <pre><code>require File.dirname(__FILE__) + '/../spec_helper'
  
  describe PostsController do
    fixtures :all
    include Devise::TestHelpers
    render_views
  
    before(:each) do
      DatabaseCleaner.strategy = :truncation
      DatabaseCleaner.start
    end
  
    after(:each) do
      DatabaseCleaner.clean
    end
    it "new action should render new template" do
      get :new
      response.should render_template(:new)
    end
  end
  </code></pre>
  
  <blockquote>
    <p>ruby 1.8.7, rspec 2.11, Rails 3.2.19</p>
  </blockquote>
  
  <p>I get this error <strong>expecting &lt;"new"> but rendering with &lt;""></strong> how can I pass this case ... I tried many suggestions but didnt get any success .. Please Help Am stuck with it ... :(</p>
  
  <p><strong>NOTE: I cant change the code of a controller</strong> </p>