Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/integration/chaining_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
end

it 'allows the right hand side to be blank' do
GitshRunner.interactive do |gitsh|
GitshRunner.interactive(
settings: { "init.defaultBranch" => "master" }
) do |gitsh|
gitsh.type('init;')
expect(gitsh).to output_no_errors
expect(gitsh).to output(/Initialized/)
Expand Down
4 changes: 3 additions & 1 deletion spec/integration/correction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
describe 'Correcting input' do
context 'when help.autocorrect is enabled' do
it 'removes the git prefix from a command' do
GitshRunner.interactive do |gitsh|
GitshRunner.interactive(
settings: { "init.defaultBranch" => "master" }
) do |gitsh|
gitsh.type ':set help.autocorrect 1'
gitsh.type 'git init'

Expand Down
4 changes: 3 additions & 1 deletion spec/integration/create_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

describe 'Creating a repository' do
it 'is possible through the gish CLI' do
GitshRunner.interactive do |gitsh|
GitshRunner.interactive(
settings: { "init.defaultBranch" => "master" }
) do |gitsh|
expect(gitsh).to prompt_with "#{cwd_basename} uninitialized!! "

gitsh.type('init')
Expand Down
4 changes: 3 additions & 1 deletion spec/integration/tab_completion_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
end

it 'completes commands after operators' do
GitshRunner.interactive do |gitsh|
GitshRunner.interactive(
settings: { "init.defaultBranch" => "master" }
) do |gitsh|
gitsh.type("init && :ec\t Hello")

expect(gitsh).to output_no_errors
Expand Down