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.5.8 spec/flydata/command/login_spec.rb
flydata-0.5.7 spec/flydata/command/login_spec.rb
flydata-0.5.6 spec/flydata/command/login_spec.rb
flydata-0.5.5 spec/flydata/command/login_spec.rb
flydata-0.5.4 spec/flydata/command/login_spec.rb
flydata-0.5.3 spec/flydata/command/login_spec.rb
flydata-0.5.2 spec/flydata/command/login_spec.rb
flydata-0.5.1 spec/flydata/command/login_spec.rb
flydata-0.5.0 spec/flydata/command/login_spec.rb
flydata-0.4.3 spec/flydata/command/login_spec.rb
flydata-0.4.2 spec/flydata/command/login_spec.rb
flydata-0.4.1 spec/flydata/command/login_spec.rb
flydata-0.4.0 spec/flydata/command/login_spec.rb
flydata-0.3.24 spec/flydata/command/login_spec.rb
flydata-0.3.23 spec/flydata/command/login_spec.rb
flydata-0.3.22 spec/flydata/command/login_spec.rb
flydata-0.3.21 spec/flydata/command/login_spec.rb
flydata-0.3.20 spec/flydata/command/login_spec.rb
flydata-0.3.19 spec/flydata/command/login_spec.rb
flydata-0.3.18 spec/flydata/command/login_spec.rb