Sha256: 4d132842dfa3269b858c7a4fdb0d06fc968917fcf14eaa38938dd3f29fd88ba3

Contents?: true

Size: 1.17 KB

Versions: 32

Compression:

Stored size: 1.17 KB

Contents

Feature: URL helpers in mailer examples

  Scenario: using URL helpers with default options
    Given a file named "config/initializers/mailer_defaults.rb" with:
      """
      Rails.configuration.action_mailer.default_url_options = { :host => 'example.com' }
      """
    And a file named "spec/mailers/notifications_spec.rb" with:
      """
      require 'spec_helper'

      describe Notifications do
        it 'should have access to URL helpers' do
          lambda { gadgets_url }.should_not raise_error
        end
      end
      """
    When I run `rspec spec`
    Then the examples should all pass

  Scenario: using URL helpers without default options
    Given a file named "config/initializers/mailer_defaults.rb" with:
      """
      # no default options
      """
    And a file named "spec/mailers/notifications_spec.rb" with:
      """
      require 'spec_helper'

      describe Notifications do
        it 'should have access to URL helpers' do
          lambda { gadgets_url :host => 'example.com' }.should_not raise_error
          lambda { gadgets_url }.should raise_error
        end
      end
      """
    When I run `rspec spec`
    Then the examples should all pass

Version data entries

32 entries across 27 versions & 4 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
rspec-rails-2.11.4 features/mailer_specs/url_helpers.feature
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/features/mailer_specs/url_helpers.feature
rspec-rails-2.11.0 features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
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/features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
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/features/mailer_specs/url_helpers.feature
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/features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/mailer_specs/url_helpers.feature
rspec-rails-2.10.1 features/mailer_specs/url_helpers.feature
rspec-rails-2.10.0 features/mailer_specs/url_helpers.feature
rspec-rails-2.9.0 features/mailer_specs/url_helpers.feature
rspec-rails-2.9.0.rc2 features/mailer_specs/url_helpers.feature