File: initializers.feature

package info (click to toggle)
ruby-factory-bot-rails 6.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: ruby: 682; makefile: 6; sh: 4
file content (15 lines) | stat: -rw-r--r-- 631 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Feature: properly integrate with Rails and other gems

  Background:
    When I create a new rails application
    And I add "factory_bot_rails" from this project as a dependency
    And I run `bundle install` with a clean environment

  Scenario: handle already loaded ActiveRecord::Base by another gems earlier
    When I run the following commands:
      """bash
      cat config/application.rb
      sed -i -e '/require "rails\/test_unit\/railtie"/a\'$'\n''require "active_record/base"' config/application.rb
      """
    When I run `bundle exec rake test` with a clean environment
    Then the output should contain "0 runs"