1. 21 2月, 2017 22 次提交
    • E
      Appease Rubocop · a21e18d5
      eileencodes 提交于
      Rubocop / code climate don't like single quotes and prefer doubles.
      a21e18d5
    • E
      Refactor so all drivers use Puma by default · c83e6d36
      eileencodes 提交于
      Puma is the default webserver of Rails. Because of this it doesn't make
      sense to run tests in Webkit if the default server is Puma.
      
      Here I've refactored the webserver to be it's own standalone module so
      it can be shared between Rails' selenium default driver and Capybara's
      defaut drivers.
      c83e6d36
    • E
      Add support for screenshots · e9127f7a
      eileencodes 提交于
      This change adds support, tests, and documentation for the screenshot
      helper.
      
      If taking screenshots is supported by the driver (for example Rack Test
      doesn't support screenshots) then a screenshot will be taken if the test
      fails.
      e9127f7a
    • E
      Reconfigure how the drivers work · f482eddb
      eileencodes 提交于
      This removes the useless Rack Test Driver that Rails was providing and
      moves to a shim like approach for default adapters.
      
      If someone wants to use one of the default Capybara Drivers then we will
      initialize a new `CapybaraDriver` that simply sets the default driver.
      
      Rails though is much more opinionated than Capybara and to make system
      testing a "works out of the box" framework in Rails we have the
      `RailsSeleniumDriver`. This driver sets defaults that Rails deems
      important for selenium testing. The purpose of this is to simply add a
      test and it just works.
      f482eddb
    • E
      Add documentation for system tests · b4432025
      eileencodes 提交于
      * Document Rails::SystemTestCase
      * Document setting drivers with the configration options
      * Document using the getter/setter for driver adapters
      * Document the CapybaraRackTestDriver and defaults
      * Document the CapybaraSeleniumDriver and defaults
      * Document custom assertions provided by System Testing
      * Document custom form helpers provided by System Testing
      b4432025
    • E
      Add tests for system testing · 9730b1db
      eileencodes 提交于
      * Adds test case test
      * Adds driver adapter test
      * Adds tests for capybara seleium driver (testing the settings not
      actually opening the browser to test capybara w/ selenium because that
      would so so so slow)
      * Adds tests for rack test driver
      * Adds tests for generators
      9730b1db
    • E
      Fix Railtie to pass class when setting options · 4533bb7d
      eileencodes 提交于
      This will clean up the railtie quite a bit, rather than passing a set of
      hash keys call the new class directly like we do with ActiveJob.
      
      Only call driver once when tests start rather than in every single test
      setup. This is more performant, and the other way was creating
      unnecessary calls.
      4533bb7d
    • E
      Move SystemTesting::Base into SystemTestCase · d63cfa27
      eileencodes 提交于
      There's no real benefit to the using the `Base` class here because
      `SystemTestCase` is already a very small class.
      d63cfa27
    • E
      Refactor to not include `capybara/rails` · faba2505
      eileencodes 提交于
      Rails itself is not a Rails application so instead of including
      `capybara/rails` we should use the code in there to set up the test. The
      only reason capybara needs to include capybara/rails in the first place
      is because Rails didn't yet support it.
      faba2505
    • E
      Refactor driver adapter getter/setter · 9edc998d
      eileencodes 提交于
      This makes it easier to ask the system test what driver adapter it is
      currently using, and makes it easier to change that setting when
      necessary.
      9edc998d
    • E
      Inherit from ActionDispatch::IntegrationTest · fa2b7b03
      eileencodes 提交于
      Integration tests already handle all the fancy url mapping we need to do
      so inherting from that allows us to not need to reinvent the wheel in
      terms of loading up the route handling required to use `visit
      users_path` over `visit /users`.
      fa2b7b03
    • E
      Add test assertion helpers · 93eff636
      eileencodes 提交于
      Adds assertions that are not part of Capybara but may be useful to Rails
      users writing system tests.
      93eff636
    • E
      Add configuration option for driver adapter · 0dc63281
      eileencodes 提交于
      This allows any application to change the driver adapter based on the
      config settings in the test env.
      0dc63281
    • E
      Add ForHelper's for system tests · 0056c9b9
      eileencodes 提交于
      These FormHelpers are selectors that aren't a capybara default but are
      considered useful for Rails applications.
      0056c9b9
    • E
      Add configurable selenium driver for capybara · 4f08bc08
      eileencodes 提交于
      This is not yet configurable but is the minimum required to make
      Capybara work with the Selenium driver. A lot of this will change as the
      tests get fleshed out and the initialization requirements will eventually
      be configurable via the application.
      4f08bc08
    • E
      Add ability to run system tests via Capybara · 0862cf1b
      eileencodes 提交于
      Capybara defaults to Rack Test for it's driver and works out of the box
      but this adds the headers and allows for future configurable adapters
      for system testing.
      0862cf1b
    • E
      Add skeleton for Rails::SystemTestCase · 97d8b7ab
      eileencodes 提交于
      This skelton is the bare minimum to get system tests to actually run in
      an application. This of course doesn't yet actually run a test but it is
      enough for `bin/rails test:system` to attempt to run files in
      `test/system` that inherit from `Rails::SystemTestCase`.
      97d8b7ab
    • E
      Add generators and ability to run system tests · 5b9aa43b
      eileencodes 提交于
      * Generates system test requirements with new Rails app
      * Includes required default gems in Gemfile for Rails app
      * Generates a single system test case
      * Generates a system test case with scaffold
      5b9aa43b
    • M
      Merge pull request #27863 from robin850/api-improvements · e9abbb70
      Matthew Draper 提交于
      Some improvements to the API site's sidebar
      e9abbb70
    • M
      Merge pull request #25877 from kamipo/delegate_to_scope_rather_than_merge · eb41ac40
      Matthew Draper 提交于
      Delegate to `scope` rather than `merge!` for collection proxy
      eb41ac40
    • R
      38c4ff37
    • R
      Properly nest core classes under a "Core Extensions" label · 5be10c79
      Robin Dupret 提交于
      Since Active Support is monkey patching a lot of core classes, let's
      rather document these changes under a new section so they are still
      documented but not encumbering the sidebar.
      
      We can safely remove the rescuing of the `LoadError` since as of
      cd7cc525, it's not possible to generate the API from an application.
      
      [ci skip]
      
      [Kasper Timm Hansen & Robin Dupret]
      5be10c79
  2. 20 2月, 2017 12 次提交
  3. 19 2月, 2017 3 次提交
  4. 18 2月, 2017 3 次提交