tweaks
This commit is contained in:
@@ -69,6 +69,18 @@ class WizardTest < Minitest::Test
|
||||
assert_includes output.string, "waive the recommended terrain safety margin"
|
||||
end
|
||||
|
||||
def test_one_piece_interior_choice_can_select_hollow
|
||||
input = StringIO.new("\n\n\n\nn\n\n\n")
|
||||
output = StringIO.new
|
||||
wizard = MoonModel::Wizard.new(io: HighLine.new(input, output), data_set: MoonModel::DataSet.new)
|
||||
values = { "printer" => MoonModel::Config::X2D.dup, "purpose" => "display", "assembly" => "auto" }
|
||||
|
||||
wizard.send(:sizing, values)
|
||||
|
||||
assert_equal "hollow", values.dig("shell", "interior")
|
||||
assert_includes output.string, "use slicer-controlled infill instead of a hollow cavity"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def ask_yes_no(input, default)
|
||||
|
||||
Reference in New Issue
Block a user