Skip to content

Commit

Permalink
Eliminate some more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed May 29, 2016
1 parent 9f0f22a commit 3bcf270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/whenever/command_line.rb
Expand Up @@ -55,7 +55,7 @@ def whenever_cron
end

def read_crontab
return @current_crontab if @current_crontab
return @current_crontab if instance_variable_defined?(:@current_crontab)

command = ['crontab -l']
command << "-u #{@options[:user]}" if @options[:user]
Expand Down
2 changes: 1 addition & 1 deletion test/functional/command_line_test.rb
Expand Up @@ -175,7 +175,7 @@ class CommandLineUpdateWithNoIdentifierTest < Whenever::TestCase
setup do
File.expects(:exist?).with('config/schedule.rb').returns(true)
Whenever::CommandLine.any_instance.expects(:default_identifier).returns('DEFAULT')
@command = Whenever::CommandLine.new(:update => true, :file => @file)
@command = Whenever::CommandLine.new(:update => true)
end

should "use the default identifier" do
Expand Down

0 comments on commit 3bcf270

Please sign in to comment.