https://github.com/codewars/ruby-test_compat
Provides methods from the deprecated custom test framework to be used with RSpec.
https://github.com/codewars/ruby-test_compat
code-runner ruby
Last synced: 3 months ago
JSON representation
Provides methods from the deprecated custom test framework to be used with RSpec.
- Host: GitHub
- URL: https://github.com/codewars/ruby-test_compat
- Owner: codewars
- License: mit
- Created: 2021-03-30T05:23:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T05:36:31.000Z (about 4 years ago)
- Last Synced: 2025-01-10T05:35:53.563Z (4 months ago)
- Topics: code-runner, ruby
- Language: Ruby
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `codewars_test_compat`
Provides methods from the deprecated custom test framework to be used with RSpec.
The goal of this gem is to ease the language version upgrade.
New tests should not use this.## Usage
`spec/spec_helper.rb`
```ruby
# frozen_string_literal: true
require "codewars_test_compat" # Defines `Test.*`
```Tests written with the deprecated custom test framework:
```ruby
# spec/example_spec.rb
describe "Example Group" do
it "should have the same syntax" do
Test.assert_equals(add(1, 1), 2)
end
end
``````bash
bundle exec rspec --require spec_helper
```