Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use less strict dependencies versioning #196

Closed
wants to merge 9 commits into from
4 changes: 2 additions & 2 deletions lib/gooddata/cli/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
# Error logic here
# return false to skip default error handling
# binding.pry
# pp exception.backtrace
# pp exception
pp exception.backtrace
pp exception
true
end
end
7 changes: 5 additions & 2 deletions spec/helpers/cli_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ module CliHelper
# @returns Captured output as string
def capture_stdout(&block)
original_stdout = $stdout
$stdout = fake = StringIO.new
original_stderr = $stderr
$stdout = $stderr = StringIO.new

begin
yield
$stdout.string
ensure
$stdout = original_stdout
$stderr = original_stderr
end
fake.string
end

# Run CLI with arguments and return captured stdout
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - api', :broken => true do
describe 'GoodData::CLI - api' do
describe 'api' do
it 'Complains when no subcommand specified' do
args = %w(api)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - auth', :broken => true do
describe 'GoodData::CLI - auth' do
describe 'auth' do
it 'Can be called without arguments' do
args = %w(auth)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_domain_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - domain', :broken => true do
describe 'GoodData::CLI - domain' do
describe 'domain' do
it 'Complains when no subcommand specified' do
args = %w(domain)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_process_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - process', :broken => true do
describe 'GoodData::CLI - process' do
describe 'process' do
it 'Complains when no subcommand specified' do
args = %w(process)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - project', :broken => true do
describe 'GoodData::CLI - project' do
describe 'project' do
it 'Complains when no subcommand specified' do
args = %w(project)
Expand Down
55 changes: 0 additions & 55 deletions spec/unit/cli/commands/cmd_role_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_run_ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - run_ruby', :broken => true do
describe 'GoodData::CLI - run_ruby' do
describe 'run_ruby' do
it 'Can be called without arguments' do
args = %w(run_ruby)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_scaffold_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'gooddata/cli/cli'

describe 'GoodData::CLI - scaffold', :broken => true do
describe 'GoodData::CLI - scaffold' do
TEST_PROJECT_NAME = 'test-project'
TEST_BRICK_NAME = 'test-brick'

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/cli/commands/cmd_user_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'gooddata/cli/cli'

describe 'GoodData::CLI - user', :broken => true do
describe 'GoodData::CLI - user' do
describe 'user' do
it 'Complains when no subcommand specified' do
args = %w(user)
Expand Down