Sha256: a2a0fea1831c8d8b38825bfed1261807c45aaac20f40e451ea7b6bd483fdf92c

Contents?: true

Size: 829 Bytes

Versions: 1

Compression:

Stored size: 829 Bytes

Contents

Feature: render_template matcher

  This matcher just delegates to the Rails assertion method
  "assert_template". For complete info on the available options,
  please take a look at the Rails documentation.

  This method is available in spec/controllers and spec/requests.

  Scenario: render_template with three possible options
    Given a file named "spec/controllers/gadgets_spec.rb" with:
      """
      require "spec_helper"

      describe GadgetsController do
        describe "#index" do
          subject { get :index }

          specify { should render_template(:index) }
          specify { should render_template("index") }
          specify { should render_template("gadgets/index") }
        end
      end
      """
    When I run "rspec spec/controllers/gadgets_spec.rb"
    Then the examples should all pass

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-rails-2.5.0 features/matchers/render_template_matcher.feature