Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import sp1 #63

Merged
merged 3 commits into from
Oct 3, 2019
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
6 changes: 6 additions & 0 deletions package/yast2-ftp-server.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 3 10:45:18 UTC 2019 - Josef Reidinger <jreidinger@suse.com>

- Fix autoyast client (bsc#1149932)
- 4.1.8

-------------------------------------------------------------------
Fri Jul 19 10:42:01 UTC 2019 - José Iván López González <jlopez@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-ftp-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-ftp-server
Version: 4.1.7
Version: 4.1.8
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
2 changes: 1 addition & 1 deletion src/lib/y2ftp/clients/ftp_server_auto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

require "yast"

Yast.import "Yast::FtpServer"
Yast.import "FtpServer"

module Y2Ftp
module Clients
Expand Down
40 changes: 40 additions & 0 deletions test/y2ftp/clients/ftp_server_auto_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#! /usr/bin/env rspec

# Copyright (c) [2019] SUSE LLC
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2 of the GNU General Public License as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, contact SUSE LLC.
#
# To contact SUSE LLC about this file by physical or electronic mail, you may
# find current contact information at www.suse.com.

require_relative "../../spec_helper.rb"
require "y2ftp/clients/ftp_server_auto"

describe Y2Ftp::Clients::FtpServerAuto do
subject { described_class.new }

describe "#run" do
context "Summary argument" do
before do
allow(Yast::WFM).to receive(:Args).with(no_args).and_return(["Summary"])
allow(Yast::WFM).to receive(:Args).with(0).and_return("Summary")
end

it "returns string" do
expect(subject.run).to be_a(::String)
end
end
end
end