Sha256: ab0deb7a820b10c1bee32157260b6f9942ce9c2c38297f25083dd5df878f911b

Contents?: true

Size: 408 Bytes

Versions: 58

Compression:

Stored size: 408 Bytes

Contents

require "spec_helper"

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

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

Version data entries

58 entries across 53 versions & 5 rubygems

Version Path
rspec-rails-2.6.0.rc4 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.6.0.rc2 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.5.0 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.4.1 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.4.0 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.3.1 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.3.0 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.2.1 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.2.0 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.1.0 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.1 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0.rc spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0.beta.22 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0.beta.20 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0.beta.19 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0.beta.18 spec/rspec/rails/example/model_example_group_spec.rb
rspec-rails-2.0.0.beta.17 spec/rspec/rails/example/model_example_group_spec.rb