Skip to content

Commit 2b5e6af

Browse files
committed
more
1 parent c73f554 commit 2b5e6af

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

tmuxp/testsuite/test_config_tmuxinator.py

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TmuxinatorTest(unittest.TestCase):
3333
tmuxinator_dict = {
3434
'windows': [
3535
{
36-
'editor': {
36+
'editor': {
3737
'layout': 'main-vertical',
3838
'panes': [
3939
'vim',
@@ -58,6 +58,7 @@ def test_config_to_dict(self):
5858

5959

6060
class TmuxinatorDeprecationsTest(unittest.TestCase):
61+
6162
''' tmuxinator uses `tabs` instead of `windows` in older versions
6263
6364
https://github.com/aziz/tmuxinator/blob/master/lib/tmuxinator/project.rb#L18
@@ -105,7 +106,47 @@ class TmuxinatorDeprecationsTest(unittest.TestCase):
105106
tmuxinator_dict = {
106107
'project_name': 'sample',
107108
'project_root': '~/test',
108-
'socket_name': 'foo'
109+
'socket_name': 'foo',
110+
'pre': 'sudo /etc/rc.d/mysqld start',
111+
'rbenv': '2.0.0-p247',
112+
'cli_args': '-f ~/.tmux.mac.conf',
113+
'tabs': [
114+
{
115+
'editor': {
116+
'pre': [
117+
'echo "I get run in each pane, before each pane command!"',
118+
None
119+
],
120+
'layout': 'main-vertical',
121+
'panes': [
122+
'vim',
123+
None,
124+
'top'
125+
]
126+
}
127+
},
128+
{'shell': 'git pull', },
129+
{
130+
'guard': {
131+
'layout': 'tiled',
132+
'pre': [
133+
'echo "I get run in each pane."',
134+
'echo "Before each pane command!"'
135+
],
136+
'panes': [
137+
None,
138+
None,
139+
None
140+
]
141+
}
142+
},
143+
{'database': 'bundle exec rails db'},
144+
{'server': 'bundle exec rails s'},
145+
{'logs': 'tail -f log/development.log'},
146+
{'console': 'bundle exec rails c'},
147+
{'capistrano': None},
148+
{'server': 'ssh user@example.com'}
149+
]
109150
}
110151

111152
def test_config_to_dict(self):

0 commit comments

Comments
 (0)