Skip to content

Commit 56d8bf0

Browse files
committed
Move Console report
1 parent c3f4987 commit 56d8bf0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/skunk/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def self.supported_formats
2424
# Similar to RubyCritic::Configuration but focused only on Skunk's needs
2525
class Configuration
2626
# Default format
27-
DEFAULT_FORMAT = :json
27+
DEFAULT_FORMAT = :console
2828

2929
def initialize
3030
@formats = [DEFAULT_FORMAT]

test/lib/skunk/config_test.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def setup
1212
end
1313

1414
def test_default_format
15-
assert_equal [:json], Config.formats
15+
assert_equal [:console], Config.formats
1616
end
1717

1818
def test_set_formats_with_array
@@ -32,23 +32,23 @@ def test_set_formats_filters_unsupported_formats
3232

3333
def test_set_formats_with_empty_array_defaults_to_json
3434
Config.formats = []
35-
assert_equal [:json], Config.formats
35+
assert_equal [:console], Config.formats
3636
end
3737

3838
def test_add_format
3939
Config.add_format(:html)
40-
assert_equal %i[json html], Config.formats
40+
assert_equal %i[console html], Config.formats
4141
end
4242

4343
def test_add_format_ignores_duplicates
4444
Config.add_format(:html)
4545
Config.add_format(:html) # This should be ignored as duplicate
46-
assert_equal %i[json html], Config.formats
46+
assert_equal %i[console html], Config.formats
4747
end
4848

4949
def test_add_format_ignores_unsupported_formats
5050
Config.add_format(:unsupported)
51-
assert_equal [:json], Config.formats
51+
assert_equal [:console], Config.formats
5252
end
5353

5454
def test_remove_format
@@ -59,7 +59,7 @@ def test_remove_format
5959

6060
def test_remove_format_defaults_to_json_when_empty
6161
Config.remove_format(:json)
62-
assert_equal [:json], Config.formats
62+
assert_equal [:console], Config.formats
6363
end
6464

6565
def test_supported_format
@@ -77,7 +77,7 @@ def test_supported_formats
7777
def test_reset
7878
Config.formats = [:html]
7979
Config.reset
80-
assert_equal [:json], Config.formats
80+
assert_equal [:console], Config.formats
8181
end
8282
end
8383
end

0 commit comments

Comments
 (0)