Commit 500277e 1 parent cc35cf3 commit 500277e Copy full SHA for 500277e
File tree 6 files changed +10
-9
lines changed
6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 2
2
* .gem
3
3
Gemfile.lock
4
4
.todo
5
+ coverage
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ def teardown
10
10
end
11
11
12
12
def test_default_configuration
13
- assert_equal nil , Enumerations . configuration . primary_key
14
- assert_equal nil , Enumerations . configuration . foreign_key_suffix
13
+ assert_nil Enumerations . configuration . primary_key
14
+ assert_nil Enumerations . configuration . foreign_key_suffix
15
15
end
16
16
17
17
def test_custom_configuration
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def test_find_by
28
28
def test_fail_find_by
29
29
status = Status . find_by ( name : 'Draft1' )
30
30
31
- assert_equal nil , status
31
+ assert_nil status
32
32
end
33
33
34
34
def test_where_by_name
Original file line number Diff line number Diff line change 1
- require 'codeclimate-test-reporter '
2
- CodeClimate :: TestReporter . start
1
+ require 'simplecov '
2
+ SimpleCov . start
3
3
4
4
require 'minitest/autorun'
5
5
require 'enumerations'
Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ def test_translated_custom_attribute_with_custom_locale
69
69
def test_empty_custom_attribute_with_custom_locale
70
70
role = Role . find ( :admin )
71
71
72
- assert_equal nil , role . description ( locale : :hr )
72
+ assert_nil role . description ( locale : :hr )
73
73
end
74
74
75
75
def test_empty_custom_attribute_with_custom_locale_and_defined_translation
76
76
role = Role . find ( :author )
77
77
78
- assert_equal nil , role . description ( locale : :hr )
78
+ assert_nil role . description ( locale : :hr )
79
79
end
80
80
81
81
def test_find_by_localized_name
@@ -89,6 +89,6 @@ def test_find_by_localized_name_with_i18n_locale
89
89
status = Status . find_by ( name : 'Nacrt' )
90
90
I18n . locale = :en
91
91
92
- assert_equal nil , status
92
+ assert_nil status
93
93
end
94
94
end
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def test_with_defined_custom_attributes_deleted
40
40
def test_without_defined_custom_attributes
41
41
status = Status . find ( :draft )
42
42
43
- assert_equal nil , status . visible
43
+ assert_nil status . visible
44
44
end
45
45
46
46
def test_enumeration_to_i_return_ordinal
You can’t perform that action at this time.
0 commit comments