Skip to content

Commit

Permalink
Merge ba2c274 into f8cb64b
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 3, 2019
2 parents f8cb64b + ba2c274 commit 09a172b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
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

0 comments on commit 09a172b

Please sign in to comment.