Sha256: ec7d1a68fbce9487d786e8f4ec93283d3a8f2b70c67c0fdcacf373cc11768f0e

Contents?: true

Size: 671 Bytes

Versions: 5

Compression:

Stored size: 671 Bytes

Contents

require "spec_helper"

module RSpec::Rails
  describe ControllerExampleGroup do
    it { should be_included_in_files_in('./spec/controllers/') }
    it { should be_included_in_files_in('.\\spec\\controllers\\') }

    it "includes routing matchers" do
      group = RSpec::Core::ExampleGroup.describe do
        include ControllerExampleGroup
      end
      group.included_modules.should include(RSpec::Rails::Matchers::RoutingMatchers)
    end

    it "adds :type => :controller to the metadata" do
      group = RSpec::Core::ExampleGroup.describe do
        include ControllerExampleGroup
      end
      group.metadata[:type].should eq(:controller)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.beta.22 spec/rspec/rails/example/controller_example_group_spec.rb
rspec-rails-2.0.0.beta.20 spec/rspec/rails/example/controller_example_group_spec.rb
rspec-rails-2.0.0.beta.19 spec/rspec/rails/example/controller_example_group_spec.rb
rspec-rails-2.0.0.beta.18 spec/rspec/rails/example/controller_example_group_spec.rb
rspec-rails-2.0.0.beta.17 spec/rspec/rails/example/controller_example_group_spec.rb