Skip to content

Commit

Permalink
Merge pull request #1649 from DataDog/migrate-last-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc authored Aug 13, 2021
2 parents a160c68 + e65331a commit 8360a8c
Show file tree
Hide file tree
Showing 18 changed files with 281 additions and 1,169 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test-head.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
continue-on-error: true
- run: bundle exec rake test:main
continue-on-error: true
- run: bundle exec rake spec:main
continue-on-error: true
- run: bundle exec rake spec:contrib
Expand Down
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ gem 'climate_control', '~> 0.2.0'
# Leave it open as we also have it as an integration and want Appraisal to control the version under test.
gem 'concurrent-ruby'
gem 'memory_profiler', '~> 0.9'
gem 'minitest', '= 5.10.1'
gem 'minitest-around', '0.5.0'
gem 'minitest-stub_any_instance', '1.0.2'
gem 'os', '~> 1.1'
gem 'pimpmychangelog', '>= 0.1.2'
gem 'pry'
Expand Down
79 changes: 7 additions & 72 deletions Rakefile

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions docs/DevelopmentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ Then within this container you can [run tests](#running-tests), or [run code qua

## Testing

The test suite uses both [Minitest](https://github.com/seattlerb/minitest) and [RSpec](https://rspec.info/) tests to verify the correctness of both the core trace library and its integrations.

Minitest is deprecated in favor of RSpec; all new tests should be written in RSpec, and only existing minitests should be updated.
The test suite uses [RSpec](https://rspec.info/) tests to verify the correctness of both the core trace library and its integrations.

### Writing tests

Expand All @@ -68,9 +66,6 @@ Simplest way to run tests is to run `bundle exec rake ci`, which will run the en
Run the tests for the core library with:

```
# Run Minitest
$ bundle exec rake test:main
# Run RSpec
$ bundle exec rake spec:main
```

Expand Down
332 changes: 271 additions & 61 deletions spec/ddtrace/contrib/rails/rack_spec.rb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions spec/ddtrace/contrib/rails/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
# ### Rails application lifecycle ###
#
# This implementation of Rails testing works differently than other testing suites.
# Unlike the Minitest suite in `ddtrace`, it does not create only one Rails application at
# load time. Instead it dynamically recreates Rails applications per example. This is how
# It does not create only one Rails application at load time.
# Instead it dynamically recreates Rails applications per example. This is how
# it is able to allow specs to define custom middleware and Rails configuration settings.
#
# To accomplish this, it uses RSpec's `let` blocks. `let` blocks are lazy variables that are
Expand Down
61 changes: 0 additions & 61 deletions test/contrib/rails/apps/application.rb

This file was deleted.

99 changes: 0 additions & 99 deletions test/contrib/rails/apps/controllers.rb

This file was deleted.

31 changes: 0 additions & 31 deletions test/contrib/rails/apps/models.rb

This file was deleted.

34 changes: 0 additions & 34 deletions test/contrib/rails/apps/rails3.rb

This file was deleted.

16 changes: 0 additions & 16 deletions test/contrib/rails/apps/rails4.rb

This file was deleted.

15 changes: 0 additions & 15 deletions test/contrib/rails/apps/rails5.rb

This file was deleted.

26 changes: 0 additions & 26 deletions test/contrib/rails/apps/rails6.rb

This file was deleted.

30 changes: 0 additions & 30 deletions test/contrib/rails/apps/routes.rb

This file was deleted.

18 changes: 0 additions & 18 deletions test/contrib/rails/core_extensions.rb

This file was deleted.

Loading

0 comments on commit 8360a8c

Please sign in to comment.