Skip to content
Merged
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 foreman_maintain.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ the Foreman/Satellite up and running."
s.add_dependency 'highline'

s.add_development_dependency 'bundler', '>= 1.17'
s.add_development_dependency 'minitest'
s.add_development_dependency 'minitest', '~> 5.0'
s.add_development_dependency 'minitest-reporters'
s.add_development_dependency 'minitest-stub-const'
s.add_development_dependency 'mocha'
Expand Down
2 changes: 1 addition & 1 deletion test/definitions/features/installer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
end

it 'has no config file' do
_(subject.config_file).must_equal(nil)
_(subject.config_file).must_be_nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been leaning to using the assert_* statements more because IMHO they're easier to read. So instead go with:

Suggested change
_(subject.config_file).must_be_nil
assert_nil subject.config_file

But that's rather inconsistent with the rest of the file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's why I didn't change it like this :)

end
end
end
2 changes: 1 addition & 1 deletion test/lib/cli/plugin_command_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module ForemanMaintain

it 'runs purge-puppet' do
Cli::PluginCommand.any_instance.expects(:run_scenario).with do |scenario|
_(scenario.context.get(:remove_data)).must_equal nil
_(scenario.context.get(:remove_data)).must_be_nil
_(scenario.label).must_equal :puppet_disable
end
run_cmd
Expand Down