Sha256: 9e22421312e01cd7cf92d5a0834c18cc0c2e29e2c198c1fec9144f157243c2f2
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 Bytes
Contents
require 'helper' class IntegrationTest < LibnotifyTestCase test "display notification" do libnotify = Libnotify::API.new(:timeout => 0.5, :icon_path => :"emblem-favorite", :append => true) [ :low, :normal, :critical ].each do |urgency| libnotify.summary = "#{RUBY_VERSION} at #{RUBY_PLATFORM}" libnotify.body = [ urgency, defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : '?' ].join(" ") libnotify.urgency = urgency libnotify.show! end end end
Version data entries
5 entries across 5 versions & 1 rubygems