Sha256: 9eb237b080d9465a4aa9f92ac1a57c037ed4247a5a050c99efb52db56d98af24
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 Bytes
Contents
require "spec_helper" module RSpec::Rails describe ModelExampleGroup do it { is_expected.to be_included_in_files_in('./spec/models/') } it { is_expected.to be_included_in_files_in('.\\spec\\models\\') } it "adds :type => :model to the metadata" do group = RSpec::Core::ExampleGroup.describe do include ModelExampleGroup end expect(group.metadata[:type]).to eq(:model) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-rails-3.0.0.beta2 | spec/rspec/rails/example/model_example_group_spec.rb |
rspec-rails-2.99.0.beta2 | spec/rspec/rails/example/model_example_group_spec.rb |