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.8.10.2 spec/flydata/command/login_spec.rb
flydata-0.8.10.1 spec/flydata/command/login_spec.rb
flydata-0.8.9.11 spec/flydata/command/login_spec.rb
flydata-0.8.10 spec/flydata/command/login_spec.rb
flydata-0.8.9 spec/flydata/command/login_spec.rb
flydata-0.8.8 spec/flydata/command/login_spec.rb
flydata-0.8.7 spec/flydata/command/login_spec.rb
flydata-0.8.6 spec/flydata/command/login_spec.rb
flydata-0.8.5 spec/flydata/command/login_spec.rb
flydata-0.8.4 spec/flydata/command/login_spec.rb
flydata-0.8.3 spec/flydata/command/login_spec.rb
flydata-0.8.2 spec/flydata/command/login_spec.rb
flydata-0.8.1 spec/flydata/command/login_spec.rb
flydata-0.8.0 spec/flydata/command/login_spec.rb
flydata-0.7.19 spec/flydata/command/login_spec.rb
flydata-0.7.18 spec/flydata/command/login_spec.rb
flydata-0.7.17 spec/flydata/command/login_spec.rb
flydata-0.7.16 spec/flydata/command/login_spec.rb
flydata-0.7.15 spec/flydata/command/login_spec.rb
flydata-0.7.14 spec/flydata/command/login_spec.rb