authenticate command (wip)

did committed Apr 07, 2015
commit 1eed6fc00170a7bffdf6bd9dbc70b5d586982cf4
Showing 2 changed files with 24 additions and 0 deletions
locomotive/wagon/commands/authenticate_command.rb b/lib/locomotive/wagon/commands/authenticate_command.rb +2 -0
@@ @@ -47,6 +47,8 @@ module Locomotive::Wagon
# else
# shell.say "We were unable to authenticate you on our platform.", :red
# end
+
+ true
end
private
spec/integration/commands/authenticate_command_spec.rb +22 -0
@@ @@ -0,0 +1,22 @@
+ # encoding: utf-8
+
+ require File.dirname(__FILE__) + '/../integration_helper'
+ require 'locomotive/wagon/commands/authenticate_command'
+
+ describe Locomotive::Wagon::AuthenticateCommand do
+
+ let(:platform_url) {}
+ let(:email) {}
+ let(:password) {}
+ let(:shell) { nil }
+ let(:command) { described_class.new(platform_url, email, password, shell) }
+
+ describe '#authenticate' do
+
+ subject { command.authenticate }
+
+ it { is_expected.to eq(true) }
+
+ end
+
+ end