Sha256: b8c85ed1d10580898320b0120aa8d4107a3bde990a9b991600c5b45aac575394
Contents?: true
Size: 1.24 KB
Versions: 61
Compression:
Stored size: 1.24 KB
Contents
require File.dirname(__FILE__) + '/../../spec_helper' class DescriptionGenerationSpecController < ActionController::Base def render_action end def redirect_action redirect_to :action => :render_action end end describe "Description generation", :type => :controller do controller_name :description_generation_spec after(:each) do Spec::Matchers.clear_generated_description end it "should generate description for render_template" do get 'render_action' response.should render_template("render_action") Spec::Matchers.generated_description.should == "should render template \"render_action\"" end it "should generate description for render_template with full path" do get 'render_action' response.should render_template("description_generation_spec/render_action") Spec::Matchers.generated_description.should == "should render template \"description_generation_spec/render_action\"" end it "should generate description for redirect_to" do get 'redirect_action' response.should redirect_to("http://test.host/description_generation_spec/render_action") Spec::Matchers.generated_description.should == "should redirect to \"http://test.host/description_generation_spec/render_action\"" end end
Version data entries
61 entries across 61 versions & 10 rubygems