Sha256: 1d6889a30fedc901c436e92098728e9fc0e3428614784d2cd8fa8c5d7748621f
Contents?: true
Size: 1.24 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dchelimsky-rspec-rails-1.1.11.4 | spec/spec/rails/matchers/description_generation_spec.rb |