Sha256: a34b7876e4a4457b9c35e8b4cc10210e020da0551d5db1c5bb3172b6e600bc91
Contents?: true
Size: 574 Bytes
Versions: 4
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' describe Uberspec::Notify::LibNotify do before(:each) do @notifier = Uberspec::Notify::LibNotify.new('path/to/success.png','path/to/failure.png') @stats = {:failed => 1, :examples => 100, :pending => 5, :time => 0.1234} end it "should have command defined" do @notifier.stub!(:system) @notifier.notify(@stats) @notifier.command.should == 'notify-send' end it "should send the correct command" do @notifier.should_receive(:system).with(/notify-send/)# '.*' '.*' -i '.*'/i) @notifier.notify(@stats) end end
Version data entries
4 entries across 4 versions & 1 rubygems