gir_ffi-pretty_printer 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "test_helper"
4
-
5
- describe "The pretty-printed GLib module" do
6
- let(:printer) { GirFFI::PrettyPrinter.new }
7
- it "looks as expected" do
8
- expected = File.read(File.join(File.dirname(__FILE__), "expected_glib.rb"))
9
- result = printer.pretty_print "GLib"
10
-
11
- File.open(File.join(File.dirname(__FILE__), "actual_glib.rb"), "w") do |resultfile|
12
- resultfile.puts result
13
- end
14
-
15
- _(result).must_equal expected
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "test_helper"
4
-
5
- describe "The pretty-printed GObject module" do
6
- let(:printer) { GirFFI::PrettyPrinter.new }
7
- it "looks as expected" do
8
- expected = File.read(File.join(File.dirname(__FILE__), "expected_gobject.rb"))
9
- result = printer.pretty_print "GObject"
10
-
11
- File.open(File.join(File.dirname(__FILE__), "actual_gobject.rb"), "w") do |resultfile|
12
- resultfile.puts result
13
- end
14
-
15
- _(result).must_equal expected
16
- end
17
- end
data/test/test_helper.rb DELETED
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- begin
4
- require "simplecov"
5
- SimpleCov.start do
6
- add_filter "/test/"
7
- end
8
- rescue LoadError
9
- nil # SimpleCov not available
10
- end
11
-
12
- require "minitest/autorun"
13
-
14
- require "gir_ffi-pretty_printer"