Skip to content

Commit 9371aaf

Browse files
authored
Merge pull request #90 from tricknotes/file-exist
Use `File.exist?` instead of `File.exists?`
2 parents 594afce + f48ebc2 commit 9371aaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/sassc/rails/importer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def imports(path, parent_path)
113113

114114
EXTENSIONS.each do |extension|
115115
try_path = File.join(search_path, file_name + extension.postfix)
116-
if File.exists?(try_path)
116+
if File.exist?(try_path)
117117
record_import_as_dependency try_path
118118
return extension.import_for(try_path, parent_dir, options)
119119
end

test/sassc_rails_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ def test_allows_for_inclusion_of_inline_source_maps
250250
# css_output = asset_output('css_application.css')
251251
# assert_match /globbed/, css_output
252252

253-
# if File.exists?("#{app_root}/log/development.log")
253+
# if File.exist?("#{app_root}/log/development.log")
254254
# log_file = "#{app_root}/log/development.log"
255-
# elsif File.exists?("#{app_root}/log/test.log")
255+
# elsif File.exist?("#{app_root}/log/test.log")
256256
# log_file = "#{app_root}/log/test.log"
257257
# else
258258
# flunk "log file was not created"

0 commit comments

Comments
 (0)