-
Notifications
You must be signed in to change notification settings - Fork 18
Enable irb flags for local geordi config and prioritize irb flags from config above default behavior #239
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
Merged
Merged
Enable irb flags for local geordi config and prioritize irb flags from config above default behavior #239
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,7 +1,7 @@ | ||
| Feature: The console command | ||
| Most aspects of connection to a server are tested in shell feature. | ||
|
|
||
| Scenario: Opening a local Rails console with an irb version < 1.2.0 and preconfigured irb flags from the global settings | ||
| Scenario: Opening a local Rails console | ||
| Given the irb version is "1.1.0" | ||
| And a file named "tmp/global_settings.yml" with "irb_flags: --foo --baz" | ||
| When I run `geordi console` | ||
|
|
@@ -10,15 +10,7 @@ Feature: The console command | |
| But the output should not contain "nomultiline" | ||
|
|
||
|
|
||
| Scenario: Opening a local Rails console with an Ruby version >= 3.0 | ||
| Given the Ruby version is "3.0" | ||
| When I run `geordi console` | ||
| Then the output should contain "# Opening a local Rails console" | ||
| And the output should contain "Util.run! (exec) bundle exec rails console -e development" | ||
| But the output should not contain "nomultiline" | ||
|
|
||
|
|
||
| Scenario: Opening a local Rails console with an irb version >= 1.2.0 and Ruby version < 3.0 | ||
| Scenario: IRB 1.2.0+ on Ruby <3 is horribly slow when pasting long strings – we work around this by automatically setting the --nomultiline switch | ||
| Given the irb version is "1.2.0" | ||
| And the Ruby version is "2.9" | ||
| When I run `geordi console` | ||
|
|
@@ -27,7 +19,7 @@ Feature: The console command | |
| And the output should contain "Using --nomultiline switch for faster pasting" | ||
|
|
||
|
|
||
| Scenario: Opening a remote Rails console with an irb version >= 1.2.0 and Ruby version < 3.0 | ||
| Scenario: Opening a remote Rails console with a slow pasting IRB sets the --nomultiline switch | ||
| Given the irb version is "1.2.0" | ||
| And the Ruby version is "2.9" | ||
| And a file named "Capfile" with "Capfile exists" | ||
|
|
@@ -45,10 +37,11 @@ Feature: The console command | |
| And the output should contain "Using --nomultiline switch for faster pasting" | ||
|
|
||
|
|
||
| Scenario: Opening a remote Rails console with an irb version >= 1.2.0, a Ruby version < 3.0 and preconfigured irb flags from the global settings | ||
| Scenario: Empty IRB flags in the local Geordi settings also override global IRB flags | ||
| Given the irb version is "1.2.0" | ||
| And the Ruby version is "2.9" | ||
| And a file named "tmp/global_settings.yml" with "irb_flags: --foo --baz" | ||
| And a file named "tmp/local_settings.yml" with "irb_flags:" | ||
| And a file named "tmp/global_settings.yml" with "irb_flags: --bar" | ||
| And a file named "Capfile" with "Capfile exists" | ||
| And a file named "config/deploy.rb" with "deploy file exists" | ||
| And a file named "config/deploy/staging.rb" with: | ||
|
|
@@ -60,4 +53,4 @@ Scenario: Opening a remote Rails console with an irb version >= 1.2.0, a Ruby ve | |
| """ | ||
| When I run `geordi console staging` | ||
| Then the output should contain "# Opening a Rails console on staging" | ||
| And the output should contain "Util.run! ssh, [email protected], -t, cd /var/www/example.com/current && bash --login -c 'bundle exec rails console -e staging -- --nomultiline --foo --baz" | ||
| And the output should contain "Util.run! ssh, [email protected], -t, cd /var/www/example.com/current && bash --login -c 'bundle exec rails console -e staging" | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After updating the other tests, please remove example in this file that have been covered by other tests.