You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
364 B
Ruby
14 lines
364 B
Ruby
describe 'rebinding [' do
|
|
context 'initialized before sourcing the plugin' do
|
|
before do
|
|
session.run_command("function [ { $commands[\\[] \"$@\" }")
|
|
session.clear_screen
|
|
end
|
|
|
|
it 'executes the custom behavior and the built-in behavior' do
|
|
session.send_string('asdf')
|
|
wait_for { session.content }.to eq('asdf')
|
|
end
|
|
end
|
|
end
|