Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Minitest module instead of MiniTest compatibility layer #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sassc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
spec.platform = Gem::Platform::RUBY
spec.extensions = ["ext/extconf.rb"]

spec.add_development_dependency "minitest", "~> 5.5.1"
spec.add_development_dependency "minitest", ">= 5.5.1", "< 5.20"
spec.add_development_dependency "minitest-around"
spec.add_development_dependency "test_construct"
spec.add_development_dependency "pry"
Expand Down
2 changes: 1 addition & 1 deletion test/custom_importer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "test_helper"

module SassC
class CustomImporterTest < MiniTest::Test
class CustomImporterTest < Minitest::Test
include TempFileTest

class CustomImporter < Importer
Expand Down
2 changes: 1 addition & 1 deletion test/engine_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "test_helper"

module SassC
class EngineTest < MiniTest::Test
class EngineTest < Minitest::Test
include TempFileTest

def render(data)
Expand Down
2 changes: 1 addition & 1 deletion test/error_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "test_helper"

module SassC
class ErrorTest < MiniTest::Test
class ErrorTest < Minitest::Test
def render(data, opts={})
Engine.new(data, opts).render
end
Expand Down
2 changes: 1 addition & 1 deletion test/functions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "stringio"

module SassC
class FunctionsTest < MiniTest::Test
class FunctionsTest < Minitest::Test
include FixtureHelper

def setup
Expand Down
6 changes: 3 additions & 3 deletions test/native_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ module NativeTest
SAMPLE_CSS_OUTPUT = ".hi {\n width: 30px; }\n"
BAD_SASS_STRING = "$size = 30px;"

class General < MiniTest::Test
class General < Minitest::Test
def test_it_reports_the_libsass_version
assert_equal "3.6.4", Native.version
end
end

class DataContext < MiniTest::Test
class DataContext < Minitest::Test
def teardown
Native.delete_data_context(@data_context) if @data_context
end
Expand Down Expand Up @@ -105,7 +105,7 @@ def test_custom_function
end
end

class FileContext < MiniTest::Test
class FileContext < Minitest::Test
include TempFileTest

def teardown
Expand Down
2 changes: 1 addition & 1 deletion test/output_style_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "test_helper"

module SassC
class OutputStyleTest < MiniTest::Test
class OutputStyleTest < Minitest::Test
def input_scss
input_scss = <<-CSS
$color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion test/sass_2_scss_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "test_helper"

module SassC
class Sass2ScssTest < MiniTest::Test
class Sass2ScssTest < Minitest::Test
def test_compact_output
assert_equal ".blat { color: red; }", Sass2Scss.convert(<<SASS)
.blat
Expand Down