Sha256: 75bd38dbea74c9d93c4e0eefc601c17430cb16ca071dcf7424523a7b9e171a17
Contents?: true
Size: 462 Bytes
Versions: 16
Compression:
Stored size: 462 Bytes
Contents
require 'spec_helper' require 'localeapp/cli/update' describe Localeapp::CLI::Update, "#execute" do before do @output = StringIO.new @updater = Localeapp::CLI::Update.new(:output => @output) end it "creates a Poller and calls poll! on it" do with_configuration do poller = Localeapp::Poller.new poller.should_receive(:poll!) Localeapp::Poller.should_receive(:new).and_return(poller) @updater.execute end end end
Version data entries
16 entries across 16 versions & 1 rubygems