Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/configatron/integrations/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.init(root = nil, env = nil)
config_files.collect! {|config| File.expand_path(config)}.uniq!

config_files.each do |config|
if File.exists?(config)
if File.exist?(config)
# puts "Configuration: #{config}"
require config
end
Expand Down
2 changes: 1 addition & 1 deletion lib/configatron/proc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize(&block)
end

def call
unless @val
unless defined? @val
val = self.block.call
self.execution_count += 1
if finalize?
Expand Down
2 changes: 1 addition & 1 deletion test/functional/configatron.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class Critic::Functional::ConfigatronTest < Critic::Functional::Test
describe 'nil value' do
it 'remembers a nil value' do
@kernel.a = nil
assert_equal(nil, @kernel.a)
assert_nil @kernel.a
end
end
end