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

Version Path
localeapp-0.7.1 spec/localeapp/cli/update_spec.rb
localeapp-0.7.0 spec/localeapp/cli/update_spec.rb
localeapp-0.6.14 spec/localeapp/cli/update_spec.rb
localeapp-0.6.13 spec/localeapp/cli/update_spec.rb
localeapp-0.6.12 spec/localeapp/cli/update_spec.rb
localeapp-0.6.10 spec/localeapp/cli/update_spec.rb
localeapp-0.6.9 spec/localeapp/cli/update_spec.rb
localeapp-0.6.8 spec/localeapp/cli/update_spec.rb
localeapp-0.6.7 spec/localeapp/cli/update_spec.rb
localeapp-0.6.6 spec/localeapp/cli/update_spec.rb
localeapp-0.6.5 spec/localeapp/cli/update_spec.rb
localeapp-0.6.4 spec/localeapp/cli/update_spec.rb
localeapp-0.6.3 spec/localeapp/cli/update_spec.rb
localeapp-0.6.2 spec/localeapp/cli/update_spec.rb
localeapp-0.6.1 spec/localeapp/cli/update_spec.rb
localeapp-0.6.0 spec/localeapp/cli/update_spec.rb