'installs the tmux package' do expect(runner).to install_package('tmux') end it 'creates the tmux.conf file' do expect(runner).to create_file('/etc/tmux.conf') end end spec/default_spec.rb
version: '12.04' ).converge('tmux::default') } it 'installs the tmux package' do expect(runner).to install_package('tmux') end it 'creates the tmux.conf file' do expect(runner).to create_file('/etc/tmux.conf') end end After
} watch(%r{^cookbooks/(.+)/recipes/(.+)\.rb$}) do |m| "cookbooks/#{m[1]}/spec/#{m[2]}_spec.rb" end watch(%r{^cookbooks/([A-Za-z]+)/(.+)(\..*)?$}) do |m| "cookbooks/#{m[1]}/spec/*.rb" end end Guardfile
running Running all specs Failures: 1) tmux::default should install the tmux package Failure/Error: runner.should install_package 'tmux' No package resource named 'tmux' with action :install found. # ./cookbooks/tmux/spec/default_spec.rb:8:in `block (2 levels) in <top (required)>' 2) tmux::default should create the tmux.conf file Failure/Error: runner.should create_file('/etc/ tmux.conf') No file resource named '/etc/tmux.conf' with action :create found. # ./cookbooks/tmux/spec/default_spec.rb:12:in `block (2 levels) in <top (required)>'
'installs the tmux package' do expect(runner).to install_package('tmux') end it 'creates the tmux.conf file' do expect(runner).to create_file('/etc/tmux.conf') end end spec/default_spec.rb
'installs the tmux package' do expect(runner).to install_package('tmux') end it 'creates the tmux.conf file' do expect(runner).to create_file('/etc/tmux.conf'). with_content('set -g prefix C-a') end end spec/default_spec.rb
running Running all specs *F Failures: 1) tmux::default should create the tmux.conf file Failure/Error: runner.should create_file('/etc/ tmux.conf') No source template named 'tmux.conf.erb' found in the default locations. # ./cookbooks/tmux/spec/default_spec.rb:12:in `block (2 levels) in <top (required)>' Finished in 0.15691 seconds 2 examples, 1 passed, 1 failures
C-b # Change the default delay: set -sg escape-time 1 # Set the window and panes index set -g base-index 1 setw -g pane-base-index 1 # Send prefix to other apps: bind C-a send-prefix # Split windows with more logical keys bind | split-window -h bind - split-window -v # Remap movement keys bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R templates/default/tmux.conf.erb