Skip to content
Snippets Groups Projects
  1. Jun 03, 2015
  2. May 26, 2015
    • Aaron Kromer's avatar
      Merge pull request #1380 from rspec/backport-bug-fixes · 72ea6ffe
      Aaron Kromer authored
      Backport bug fixes
      72ea6ffe
    • Aaron Kromer's avatar
      Update changelog with remaining backports. · c2d48280
      Aaron Kromer authored
      c2d48280
    • Aaron Kromer's avatar
      Fix load order 🐛 · fb0244ea
      Aaron Kromer authored
      This fixes an "undefined method `fixture_path`" error caused in
      `RSpec::Core::Configuration`. The issue occurs when a spec is created
      before rspec-rails is loaded. The cause is rspec-core attempts to
      include the `RSpec::Rails::FixtureSupport` module into the existing spec
      as soon as we tell the configuration about it, but have not told the
      configuration about the new related options.
      
      This moves the including of the module until after we have told the
      configuration about the dependent options.
      
      This includes a spec which is named in a manner to attempt to ensure it
      is the first spec loaded by rspec-core; which loads spec files
      alphabetically. To ensure we test the issue the run script is updated to
      also run this spec file standalone.
      
      When discussing rspec/rspec-rails#1355 it was agreed that we need to
      consider removing this global inclusion of the fixture support. Instead
      favoring including it in the `RailsExampleGroup`. A deprecation comment
      has been included to remind us later.
      fb0244ea
    • Orien Madgwick's avatar
      extract `disable_testunit_autorun` method · 8911e077
      Orien Madgwick authored
      8911e077
    • Orien Madgwick's avatar
      132b778a
    • Aaron Kromer's avatar
      Add fix to changelog [ci skip] · 39556da4
      Aaron Kromer authored
      39556da4
    • Aaron Kromer's avatar
      Fix action mailer preview path setup. · 24578d9e
      Aaron Kromer authored
      This removes the unnecessary warning about a preview path set to a
      location other than `/spec/mailers/preview`.
      
      This does not force `ActionMailer` to load when the Railtie runs by
      removing the `defined?` check. This is necessary because the
      `ActionMailer` class only loads it's settings once, after it is first
      loaded. If we load the class in our Railtie any custom settings declared
      in a config block in an initializer will be ignored.
      
      An improved spec suite for the different permutations of availability of
      action mailer previews is included as well.
      24578d9e
    • David Daniell's avatar
      If a view example's description contains no path elements, then do not attempt... · 2fcdb4a0
      David Daniell authored
      If a view example's description contains no path elements, then do not attempt to load a helper based on the example description.
      2fcdb4a0
  3. Feb 24, 2015
  4. Feb 23, 2015
    • Aaron Kromer's avatar
      03b9db92
    • Aaron Kromer's avatar
      Disable the test-unit gem autorunner. · 4b203f8d
      Aaron Kromer authored
      For some reason the test-unit gem loads it's autorunner by default.
      Though the test-unit included with Ruby does not. The original code for
      loading test-unit pre-dates widespread usage of the test-unit gem.
      
      We took care of disabling the autorunner for Ruby 2.2+ since the
      test-unit gem is now required for Rails 3.2. For older Ruby versions we
      attempt to only load the `test/unit/assertions` module. When using the
      `test-unit` gem however, Rails will auto require it for us, which loads
      the main test-unit code, thus enabling the autorunner.
      4b203f8d
  5. Feb 21, 2015
  6. Feb 03, 2015
  7. Feb 02, 2015
  8. Feb 01, 2015
  9. Jan 29, 2015
  10. Jan 19, 2015
  11. Jan 18, 2015
Loading