Skip to content

Commit

Permalink
improve mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Aug 30, 2023
1 parent ba9dc9b commit 51ca721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/test/agama/dbus/manager_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
let(:config) { Agama::Config.new }
let(:logger) { Logger.new($stdout, level: :warn) }
let(:manager) { Agama::Manager.new(config, logger) }
let(:locale_service) { double(object: double(introspect: nil)) }
let(:locale_interface) { double("[]" => "en", on_signal: nil) }
let(:locale_service) do
double(object: double(introspect: nil, path: "test", "[]": locale_interface))
end
let(:bus) { instance_double(Agama::DBus::Bus, request_name: nil, service: locale_service) }
let(:bus_service) do
instance_double(::DBus::ObjectServer, export: nil)
Expand Down

0 comments on commit 51ca721

Please sign in to comment.