Clean up tests
* Remove deprecated tags; * Improve scenarios, steps and specs descriptions.
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
| Feature: quit action | Feature: quit action | ||||||
|  |  | ||||||
|   Scenario: quits on keybing press |   Scenario: quits on alt+q keys press | ||||||
|     Given uhwm is running |     Given uhwm is running | ||||||
|     When I press the default quit key binding |     When I press the alt+q keys | ||||||
|     Then uhwm should terminate successfully |     Then uhwm should terminate successfully | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| Feature: run control file path CLI option | Feature: run control file path CLI option | ||||||
|  |  | ||||||
|   Scenario: changes the path to run control file |   Scenario: specifies run control file path | ||||||
|     Given a file named uhwmrc.rb with: |     Given a file named uhwmrc.rb with: | ||||||
|       """ |       """ | ||||||
|       puts 'run control evaluation' |       puts 'run control evaluation' | ||||||
|   | |||||||
| @@ -1,7 +1,6 @@ | |||||||
| @mocked_home_directory |  | ||||||
| Feature: run control file evaluation | Feature: run control file evaluation | ||||||
|  |  | ||||||
|   Scenario: evaluates the default run control file when it exists |   Scenario: evaluates the default run control file when present | ||||||
|     Given a file named .uhwmrc.rb with: |     Given a file named .uhwmrc.rb with: | ||||||
|       """ |       """ | ||||||
|       puts 'run control evaluation' |       puts 'run control evaluation' | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| When /^I press the default quit key binding$/ do | When /^I press the ([^ ]+) keys?$/ do |keys| | ||||||
|   x_key 'alt+q' |   x_key keys | ||||||
| end | end | ||||||
|  |  | ||||||
| Then /^it must connect to X display$/ do | Then /^it must connect to X display$/ do | ||||||
|   | |||||||
| @@ -60,7 +60,7 @@ module Uh | |||||||
|       end |       end | ||||||
|  |  | ||||||
|       describe '#evaluate_run_control' do |       describe '#evaluate_run_control' do | ||||||
|         context 'when run control file exists' do |         context 'when run control file is present' do | ||||||
|           it 'evaluates the run control file' do |           it 'evaluates the run control file' do | ||||||
|             with_file 'throw :run_control' do |f| |             with_file 'throw :run_control' do |f| | ||||||
|               env.rc_path = f.path |               env.rc_path = f.path | ||||||
| @@ -69,7 +69,7 @@ module Uh | |||||||
|           end |           end | ||||||
|         end |         end | ||||||
|  |  | ||||||
|         context 'when run control file does not exist' do |         context 'when run control file is not present' do | ||||||
|           it 'does not raise any error' do |           it 'does not raise any error' do | ||||||
|             expect { runner.evaluate_run_control }.not_to raise_error |             expect { runner.evaluate_run_control }.not_to raise_error | ||||||
|           end |           end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user