-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed return true and changed to_a.map to .map
- Loading branch information
cgullick
committed
Sep 22, 2014
1 parent
62c2722
commit fa498bf
Showing
2 changed files
with
19 additions
and
3 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 |
---|---|---|
|
@@ -117,7 +117,23 @@ | |
expect(cli).to receive(:run_cmd).with("git checkout my-feature-branch").ordered | ||
|
||
cli.integrate | ||
# expect { cli.integrate } | ||
end | ||
it 'raises error' do | ||
should meet_expectations | ||
end | ||
end | ||
context 'with --resume flag with no feature branch passed' do | ||
let(:options) do | ||
{ | ||
resume:'' | ||
} | ||
end | ||
let(:repo) { cli.send(:repo) } | ||
let(:branches) { double(each_name: ['my-feature-branch'])} | ||
before do | ||
expect(repo).to receive(:branches).and_return(branches) | ||
|
||
cli.integrate | ||
end | ||
it 'raises error' do | ||
This comment has been minimized.
Sorry, something went wrong.
wireframe
Contributor
|
||
should meet_expectations | ||
|
remove the
map
function and associated block.the
map
function is used to transform one array into another. you're block is not doing any manipulation of the array, and is just returning the same string value.