Skip to content

Testing the Boxer API #8

Description

@NikoRoberts

In the Using Boxer with Rails wiki page where it says:

# Load all of our boxes
unless Rails.env.test?
  Dir[File.join(Rails.root, 'lib', 'boxer', '**', '*.rb')].each do |f|
    require_dependency f
  end
end

Why wouldn't you want to load the Boxer in the test environment?

We want to make sure these endpoints are working but we are assuming there might be a logical reason why this was suggested. Can anyone clear this up?

cc. @bcoelh0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions