lib/sass_spec/test.rb
# Adds separate outputs for the test that are compatible with the current
# implementation.
Adds separate outputs for the test that are compatible with the current
implementation.
Adds separate outputs for the test that are compatible with the current implementation .
def migrate_impl!
    if @test_case.expected != @normalized_output
      File.write("#{@test_case.folder}/expected-#{@test_case.impl}.css", @output, binmode: true)
    end
    if extract_error_message(@test_case.expected_error) != extract_error_message(@error)
      File.write("#{@test_case.folder}/error-#{@test_case.impl}", @error, binmode: true)
    end
    if @test_case.expected_status != @status
      File.write("#{@test_case.folder}/status-#{@test_case.impl}", @status, binmode: true)
    end
    change_options(@test_case.options_path,
        remove_warning_todo: [@test_case.impl], remove_todo: [@test_case.impl])
  end
def migrate_impl! if @test_case . expected != @normalized_output File . write ( "#{@test_case.folder}/expected-#{@test_case.impl}.css" , @output , binmode : true ) end if extract_error_message ( @test_case . expected_error ) != extract_error_message ( @error ) File . write ( "#{@test_case.folder}/error-#{@test_case.impl}" , @error , binmode : true ) end if @test_case . expected_status != @status File . write ( "#{@test_case.folder}/status-#{@test_case.impl}" , @status , binmode : true ) end change_options ( @test_case . options_path , remove_warning_todo : [ @test_case . impl ] , remove_todo : [ @test_case . impl ] ) end
Adds separate outputs for the test that are compatible with the current
implementation.
Adds separate outputs for the test that are compatible with the current implementation .