-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andre Medeiros
committed
Jul 5, 2020
1 parent
23982d8
commit f51882c
Showing
18 changed files
with
291 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'minitest', '~> 5.14.1' | ||
gem 'minitest-hooks', '~> 1.5.0' | ||
gem 'rake', '~> 13.0.1' | ||
gem 'byebug', '~> 11.1.3' | ||
gem 'rspec', '~> 3.9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
minispec-metadata (3.3.1) | ||
minitest | ||
minitest (5.14.1) | ||
minitest-hooks (1.5.0) | ||
minitest (> 5.3) | ||
rake (13.0.1) | ||
byebug (11.1.3) | ||
diff-lcs (1.4.4) | ||
rspec (3.9.0) | ||
rspec-core (~> 3.9.0) | ||
rspec-expectations (~> 3.9.0) | ||
rspec-mocks (~> 3.9.0) | ||
rspec-core (3.9.2) | ||
rspec-support (~> 3.9.3) | ||
rspec-expectations (3.9.2) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.9.0) | ||
rspec-mocks (3.9.1) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.9.0) | ||
rspec-support (3.9.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
minispec-metadata (~> 3.3.1) | ||
minitest (~> 5.14.1) | ||
minitest-hooks (~> 1.5.0) | ||
rake (~> 13.0.1) | ||
byebug (~> 11.1.3) | ||
rspec (~> 3.9.0) | ||
|
||
BUNDLED WITH | ||
2.1.4 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe 'Commands' do | ||
describe 'cd' do | ||
it 'should emit a finisher' do | ||
loon %w(cd andremedeiros/loon) | ||
|
||
assert_status 0 | ||
assert_finalizer 'chdir', "#{ENV['HOME']}/src/github.com/andremedeiros/loon" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
describe 'Commands' do | ||
describe 'clone' do | ||
around(:each) do |example| | ||
with_environment(home: Dir.mktmpdir) do | ||
example.run | ||
end | ||
end | ||
|
||
it 'should respect source tree setting' do | ||
with_config(source_tree: '$HOME/{owner}/{name}') do | ||
loon %w(clone andremedeiros/ruby-demo) | ||
|
||
assert_status 0 | ||
assert_path "#{ENV['HOME']}/andremedeiros/ruby-demo/.git" | ||
end | ||
end | ||
|
||
it 'should check out a repo' do | ||
loon %w(clone andremedeiros/ruby-demo) | ||
|
||
assert_status 0 | ||
assert_path "#{ENV['HOME']}/src/github.com/andremedeiros/ruby-demo/.git" | ||
end | ||
|
||
it 'should emit a finisher' do | ||
loon %w(clone andremedeiros/ruby-demo) | ||
|
||
assert_status 0 | ||
assert_finalizer 'chdir', "#{ENV['HOME']}/src/github.com/andremedeiros/ruby-demo" | ||
end | ||
end | ||
end |
Oops, something went wrong.