Sha256: f5d30905b3bf35c1f5a06a2798ba5a5ea8e08281e22df819ccb558e7197ffc8c

Contents?: true

Size: 496 Bytes

Versions: 92

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'
require 'flydata/command/login'

module Flydata
  module Command
    describe Login do
      subject { described_class.new }
      let(:ask_text) { "answer" }
      let(:flydata) { double('flydata') }

      before do
        allow(subject).to receive(:flydata).and_return(flydata)
        allow(subject).to receive(:ask).and_return(ask_text)
      end
      it do
        expect(flydata).to receive(:post)
        expect(subject.run).to eq true
      end
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
flydata-0.7.13 spec/flydata/command/login_spec.rb
flydata-0.7.12 spec/flydata/command/login_spec.rb
flydata-0.7.11 spec/flydata/command/login_spec.rb
flydata-0.7.10 spec/flydata/command/login_spec.rb
flydata-0.7.9 spec/flydata/command/login_spec.rb
flydata-0.7.8 spec/flydata/command/login_spec.rb
flydata-0.7.7 spec/flydata/command/login_spec.rb
flydata-0.7.6 spec/flydata/command/login_spec.rb
flydata-0.7.5 spec/flydata/command/login_spec.rb
flydata-0.7.4 spec/flydata/command/login_spec.rb
flydata-0.7.2.1 spec/flydata/command/login_spec.rb
flydata-0.7.2 spec/flydata/command/login_spec.rb
flydata-0.7.1 spec/flydata/command/login_spec.rb
flydata-0.7.0 spec/flydata/command/login_spec.rb
flydata-0.6.14 spec/flydata/command/login_spec.rb
flydata-0.6.13 spec/flydata/command/login_spec.rb
flydata-0.6.12 spec/flydata/command/login_spec.rb
flydata-0.6.11 spec/flydata/command/login_spec.rb
flydata-0.6.10 spec/flydata/command/login_spec.rb
flydata-0.6.9 spec/flydata/command/login_spec.rb