Skip to content

Commit

Permalink
more test adaptation and rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 13, 2023
1 parent eda57af commit 36a7723
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions service/test/agama/dbus/clients/questions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@
let(:dbus_object) { instance_double(::DBus::ProxyObject) }
let(:properties_iface) { instance_double(::DBus::ProxyObjectInterface) }

let(:question1) { Agama::Question.new("What?", options: [:this, :that]) }
let(:question1) do
Agama::Question.new(text: "What?", qclass: "test2", options: [:this, :that],
default_option: :this)
end
let(:question2) do
Agama::Question.new(text: "When?", qclass: "test", options: [:now, :later], default_option: :now)
Agama::Question.new(text: "When?", qclass: "test", options: [:now, :later],
default_option: :now)
end
let(:question1_proxy) do
instance_double(::DBus::ProxyObject, path: "/org/opensuse/Agama/Questions1/33")
Expand Down

0 comments on commit 36a7723

Please sign in to comment.