Sha256: cddc0af4a5a41e99fea1fbc962d9954bbbc3ec47f57ff7e834b0a277b30805df

Contents?: true

Size: 631 Bytes

Versions: 58

Compression:

Stored size: 631 Bytes

Contents

require "spec_helper"

module RSpec::Rails
  describe MailerExampleGroup do
    module ::Rails; end
    before do
      Rails.stub_chain(:application, :routes, :url_helpers).and_return(Rails)
      Rails.stub_chain(:configuration, :action_mailer, :default_url_options).and_return({})
    end

    it { should be_included_in_files_in('./spec/mailers/') }
    it { should be_included_in_files_in('.\\spec\\mailers\\') }

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

Version data entries

58 entries across 53 versions & 5 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-rails-2.13.0/spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.14.1 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-3.0.0.beta1 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.99.0.beta1 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.14.0 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.13.1 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.13.0 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.12.2 spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.12.1 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.12.0 spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.11.4 spec/rspec/rails/example/mailer_example_group_spec.rb
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/spec/rspec/rails/example/mailer_example_group_spec.rb
rspec-rails-2.11.0 spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/spec/rspec/rails/example/mailer_example_group_spec.rb