whiskey_disk 0.6.22 → 0.6.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. data/CHANGELOG +25 -15
  2. data/README.integration_specs +24 -36
  3. data/README.markdown +112 -96
  4. data/Rakefile +79 -5
  5. data/VERSION +1 -1
  6. data/lib/whiskey_disk.rb +297 -294
  7. data/lib/whiskey_disk/config.rb +99 -168
  8. data/lib/whiskey_disk/config/abstract_filter.rb +19 -0
  9. data/lib/whiskey_disk/config/filter.rb +48 -0
  10. data/lib/whiskey_disk/config/filters/add_environment_name_filter.rb +11 -0
  11. data/lib/whiskey_disk/config/filters/add_project_name_filter.rb +11 -0
  12. data/lib/whiskey_disk/config/filters/check_for_duplicate_domains_filter.rb +21 -0
  13. data/lib/whiskey_disk/config/filters/convert_role_strings_to_list_filter.rb +20 -0
  14. data/lib/whiskey_disk/config/filters/default_config_target_filter.rb +12 -0
  15. data/lib/whiskey_disk/config/filters/default_domain_filter.rb +12 -0
  16. data/lib/whiskey_disk/config/filters/drop_empty_domain_roles_filter.rb +32 -0
  17. data/lib/whiskey_disk/config/filters/environment_scope_filter.rb +20 -0
  18. data/lib/whiskey_disk/config/filters/hashify_domain_entries_filter.rb +29 -0
  19. data/lib/whiskey_disk/config/filters/localize_domains_filter.rb +24 -0
  20. data/lib/whiskey_disk/config/filters/modules/scope_helper.rb +11 -0
  21. data/lib/whiskey_disk/config/filters/normalize_ssh_options_filter.rb +29 -0
  22. data/lib/whiskey_disk/config/filters/project_scope_filter.rb +34 -0
  23. data/lib/whiskey_disk/config/filters/select_project_and_environment_filter.rb +12 -0
  24. data/lib/whiskey_disk/config/filters/stringify_hash_keys_filter.rb +25 -0
  25. data/lib/whiskey_disk/helpers.rb +1 -1
  26. data/lib/whiskey_disk/rake.rb +25 -22
  27. data/scenarios/git_repositories/config.git/HEAD +1 -0
  28. data/scenarios/git_repositories/config.git/config +5 -0
  29. data/scenarios/git_repositories/config.git/description +1 -0
  30. data/scenarios/git_repositories/config.git/git-daemon-export-ok +0 -0
  31. data/scenarios/git_repositories/config.git/hooks/applypatch-msg.sample +15 -0
  32. data/scenarios/git_repositories/config.git/hooks/commit-msg.sample +24 -0
  33. data/scenarios/git_repositories/config.git/hooks/post-commit.sample +8 -0
  34. data/scenarios/git_repositories/config.git/hooks/post-receive.sample +15 -0
  35. data/scenarios/git_repositories/config.git/hooks/post-update.sample +8 -0
  36. data/scenarios/git_repositories/config.git/hooks/pre-applypatch.sample +14 -0
  37. data/scenarios/git_repositories/config.git/hooks/pre-commit.sample +46 -0
  38. data/scenarios/git_repositories/config.git/hooks/pre-rebase.sample +169 -0
  39. data/scenarios/git_repositories/config.git/hooks/prepare-commit-msg.sample +36 -0
  40. data/scenarios/git_repositories/config.git/hooks/update.sample +128 -0
  41. data/scenarios/git_repositories/config.git/info/exclude +6 -0
  42. data/scenarios/git_repositories/config.git/objects/0d/b14dd6ddc54017c0a11960dcda82ed802cde69 +0 -0
  43. data/scenarios/git_repositories/config.git/objects/0e/e781f5ce80d64db32a74a7aae7b5248dafe112 +3 -0
  44. data/scenarios/git_repositories/config.git/objects/17/6bf54cf17d1d1c24556dc059c4144a5df230e8 +0 -0
  45. data/scenarios/git_repositories/config.git/objects/20/e9ff3feaa8ede30f707e5f1b4356e3c02bb7ec +0 -0
  46. data/scenarios/git_repositories/config.git/objects/45/117b1c775f0de415478dbf08ed9d667ab17d13 +0 -0
  47. data/scenarios/git_repositories/config.git/objects/51/3954c9aca090e6ce40359f0e9fde30ea78eb8c +0 -0
  48. data/scenarios/git_repositories/config.git/objects/66/947a7a11a6f5d3d561fe95de284ced3010819a +0 -0
  49. data/scenarios/git_repositories/config.git/objects/6b/bc79311bfac47d3ed724aa82a4814e0dda4c67 +0 -0
  50. data/scenarios/git_repositories/config.git/objects/71/eb5df52676e8e6efba471050b46978173af110 +1 -0
  51. data/scenarios/git_repositories/config.git/objects/84/17d2fe3e8fcc0825249c517b29b0f9ea8b8b31 +2 -0
  52. data/scenarios/git_repositories/config.git/objects/8b/384fcfcf7c0dee7c3c1d5636bee9e645d9cf38 +0 -0
  53. data/scenarios/git_repositories/config.git/objects/bb/59da633ba74296b0c2f9ff70784ac155ddb599 +0 -0
  54. data/scenarios/git_repositories/config.git/objects/cc/b86b26189afbf45d8eb9165812ab86dbdfca63 +0 -0
  55. data/scenarios/git_repositories/config.git/objects/d1/0bcd51fec41f854001e4d61f99d9e282a695d3 +0 -0
  56. data/scenarios/git_repositories/config.git/objects/d8/a8b0f5b1fd66844efb141d9544965ea0065f2d +0 -0
  57. data/scenarios/git_repositories/config.git/objects/e6/b02c66ad632e6b8535c4630cb8fe07732a72fc +0 -0
  58. data/scenarios/git_repositories/config.git/objects/e8/b8bfeeba735c0a1a873082554cb4d7256ac125 +0 -0
  59. data/scenarios/git_repositories/config.git/objects/f9/0181466a1a60b793ca9cc9abd584c18d4e3887 +0 -0
  60. data/scenarios/git_repositories/config.git/objects/f9/49d5d8a4f12c91471e34d4e277239c35ebd10d +0 -0
  61. data/scenarios/git_repositories/config.git/refs/heads/master +1 -0
  62. data/scenarios/git_repositories/project.git/HEAD +1 -0
  63. data/scenarios/git_repositories/project.git/config +5 -0
  64. data/scenarios/git_repositories/project.git/description +1 -0
  65. data/scenarios/git_repositories/project.git/git-daemon-export-ok +0 -0
  66. data/scenarios/git_repositories/project.git/hooks/applypatch-msg.sample +15 -0
  67. data/scenarios/git_repositories/project.git/hooks/commit-msg.sample +24 -0
  68. data/scenarios/git_repositories/project.git/hooks/post-commit.sample +8 -0
  69. data/scenarios/git_repositories/project.git/hooks/post-receive.sample +15 -0
  70. data/scenarios/git_repositories/project.git/hooks/post-update.sample +8 -0
  71. data/scenarios/git_repositories/project.git/hooks/pre-applypatch.sample +14 -0
  72. data/scenarios/git_repositories/project.git/hooks/pre-commit.sample +46 -0
  73. data/scenarios/git_repositories/project.git/hooks/pre-rebase.sample +169 -0
  74. data/scenarios/git_repositories/project.git/hooks/prepare-commit-msg.sample +36 -0
  75. data/scenarios/git_repositories/project.git/hooks/update.sample +128 -0
  76. data/scenarios/git_repositories/project.git/info/exclude +6 -0
  77. data/scenarios/git_repositories/project.git/objects/04/26e152e66c8cd42974279bdcae09be9839c172 +0 -0
  78. data/scenarios/git_repositories/project.git/objects/04/f4de85eaf72ef1631dc6d7424045c0a749b757 +1 -0
  79. data/scenarios/git_repositories/project.git/objects/06/13fe277280cbcdb2856e1eefc70bdaff011b20 +0 -0
  80. data/scenarios/git_repositories/project.git/objects/06/7aca89b86265eee211387434c3e50f37ccf009 +0 -0
  81. data/scenarios/git_repositories/project.git/objects/09/445dacc4822722612d60833c9948219ecdd8f5 +0 -0
  82. data/scenarios/git_repositories/project.git/objects/11/c4ec64326de35462f4e79d0f4229bf8e26e0c5 +0 -0
  83. data/scenarios/git_repositories/project.git/objects/20/1c7641c2e42b0b904e5c1f793489d8b858e4da +2 -0
  84. data/scenarios/git_repositories/project.git/objects/23/979639da60d2d31e9744468df1c1221b101e64 +0 -0
  85. data/scenarios/git_repositories/project.git/objects/27/a3fff2c4c45ab5513a405f694c0a042cb5d417 +1 -0
  86. data/scenarios/git_repositories/project.git/objects/2c/0c33cfba8e1af15df88522c0db2b10a6a94138 +2 -0
  87. data/scenarios/git_repositories/project.git/objects/38/b574660305ecb5fec6b2daa7ee1e0dbf1b6003 +0 -0
  88. data/scenarios/git_repositories/project.git/objects/4a/57abb5e4e426cfc9101b3af22ac83ccbd8e2ad +0 -0
  89. data/scenarios/git_repositories/project.git/objects/4c/77ebdd985e57afe7988480720c5dc77ec525c9 +0 -0
  90. data/scenarios/git_repositories/project.git/objects/51/c94da6f1b8aa9d2346088d3d362475b60c7f32 +0 -0
  91. data/scenarios/git_repositories/project.git/objects/5b/a96acf9cc9b87babe37c032676f53bf1ba9ae7 +2 -0
  92. data/scenarios/git_repositories/project.git/objects/5d/f555601d60f1c2a84d2364af0ad640612c3ba5 +0 -0
  93. data/scenarios/git_repositories/project.git/objects/71/03b5ac94940d596c2160a5cfcd55ca4ccac41f +0 -0
  94. data/scenarios/git_repositories/project.git/objects/73/3fc331098b03523f414f3509b9ae6e637c6866 +0 -0
  95. data/scenarios/git_repositories/project.git/objects/80/26076649ceccbe96a6292f2432652f08483035 +0 -0
  96. data/scenarios/git_repositories/project.git/objects/86/d1ef0976be4567de562224e1b51fbf9820c53a +1 -0
  97. data/scenarios/git_repositories/project.git/objects/87/a9d8b09b3401d21b23d90253332d6b28b47db2 +0 -0
  98. data/scenarios/git_repositories/project.git/objects/8b/030ba688255c917d189ae3f87d7c5ccd226bc2 +0 -0
  99. data/scenarios/git_repositories/project.git/objects/95/c9d5ad9b1c90e4c805516783105fc2037dedeb +2 -0
  100. data/scenarios/git_repositories/project.git/objects/95/d82d043af35a80eabfd56c0d705abfa3488787 +2 -0
  101. data/scenarios/git_repositories/project.git/objects/96/0bf34bb0b46d0aeb0be87f688f4ef06a4b35e1 +0 -0
  102. data/scenarios/git_repositories/project.git/objects/a3/860106dc1d148c7831cd45ae38829b4ed47702 +2 -0
  103. data/scenarios/git_repositories/project.git/objects/a8/506d6439b71784a72ac72d284b2ad53088f573 +0 -0
  104. data/scenarios/git_repositories/project.git/objects/ad/22ea6c7563777936ecfbe50d8e2cf8120fd525 +0 -0
  105. data/scenarios/git_repositories/project.git/objects/ae/3900de54aff557c61c81146d00f9d38e55a265 +1 -0
  106. data/scenarios/git_repositories/project.git/objects/bf/5e3740d52b80abb0378b3f85f93a53b1294521 +1 -0
  107. data/scenarios/git_repositories/project.git/objects/bf/b59811cdbc069418dee14b171e6e7e979784b7 +0 -0
  108. data/scenarios/git_repositories/project.git/objects/cc/5ac0afb24e727d5de344cc26a425f4fb7fd17d +3 -0
  109. data/scenarios/git_repositories/project.git/objects/d1/091aa2dd76885108461110c639e6b33a297fce +0 -0
  110. data/scenarios/git_repositories/project.git/objects/d8/913f6650eb2b7bf2a633732d8452008ca23dcb +0 -0
  111. data/scenarios/git_repositories/project.git/objects/db/d1b9667f1b26b13331ac0c321dced8be1aeab0 +3 -0
  112. data/scenarios/git_repositories/project.git/objects/e4/3b9107e9b1908ce415025e64eb83a493d329b7 +0 -0
  113. data/scenarios/git_repositories/project.git/objects/ef/2a88894d5421920b9dfe67a9a4d8043830e62e +0 -0
  114. data/scenarios/git_repositories/project.git/objects/f4/0123a1ff20c65d8dc15a38a83222647908e6f7 +0 -0
  115. data/scenarios/git_repositories/project.git/objects/f5/0af315b75ca0b12c720dec6d916b76b968c319 +0 -0
  116. data/scenarios/git_repositories/project.git/objects/f6/0215709b7b23f3738e9cbaf634b1c86bbd376a +0 -0
  117. data/scenarios/git_repositories/project.git/refs/heads/bad_rakefile +1 -0
  118. data/scenarios/git_repositories/project.git/refs/heads/hook_with_changed +1 -0
  119. data/scenarios/git_repositories/project.git/refs/heads/master +1 -0
  120. data/scenarios/git_repositories/project.git/refs/heads/no_rake_hooks +1 -0
  121. data/scenarios/git_repositories/project.git/refs/heads/post_rake_tasks +1 -0
  122. data/scenarios/invalid/deploy.yml +1 -0
  123. data/scenarios/local/deploy.yml.erb +17 -0
  124. data/scenarios/remote/deploy.yml +119 -0
  125. data/scenarios/setup/vagrant/.gitignore +3 -0
  126. data/scenarios/setup/vagrant/Vagrantfile +10 -0
  127. data/scenarios/setup/vagrant/manifests/integration.pp +32 -0
  128. data/scenarios/setup/vagrant/pids/.gitignore +1 -0
  129. data/spec/init_spec.rb +1 -1
  130. data/spec/install_spec.rb +4 -4
  131. data/spec/integration/branch_switching_spec.rb +41 -0
  132. data/spec/integration/deployment_failures_spec.rb +106 -0
  133. data/spec/integration/helper_spec.rb +90 -0
  134. data/spec/integration/invalid_configuration_spec.rb +39 -0
  135. data/spec/integration/local_deployments_spec.rb +230 -0
  136. data/spec/integration/post_rake_tasks_spec.rb +226 -0
  137. data/spec/integration/post_scripts_spec.rb +246 -0
  138. data/spec/integration/remote_deployments_spec.rb +166 -0
  139. data/spec/integration/staleness_checks_spec.rb +72 -0
  140. data/spec/spec_helper.rb +30 -2
  141. data/spec/wd_command_spec.rb +136 -136
  142. data/spec/wd_role_command_spec.rb +5 -5
  143. data/spec/whiskey_disk/config/filter_spec.rb +77 -0
  144. data/spec/whiskey_disk/config/filters/add_environment_name_filter_spec.rb +20 -0
  145. data/spec/whiskey_disk/config/filters/add_project_name_filter_spec.rb +19 -0
  146. data/spec/whiskey_disk/config/filters/check_for_duplicate_domains_filter_spec.rb +29 -0
  147. data/spec/whiskey_disk/config/filters/convert_role_strings_to_list_filter_spec.rb +48 -0
  148. data/spec/whiskey_disk/config/filters/default_config_target_filter_spec.rb +19 -0
  149. data/spec/whiskey_disk/config/filters/default_domain_filter_spec.rb +18 -0
  150. data/spec/whiskey_disk/config/filters/drop_empty_domain_roles_filter_spec.rb +60 -0
  151. data/spec/whiskey_disk/config/filters/environment_scope_filter_spec.rb +32 -0
  152. data/spec/whiskey_disk/config/filters/hashify_domain_entries_filter_spec.rb +41 -0
  153. data/spec/whiskey_disk/config/filters/localize_domains_filter_spec.rb +30 -0
  154. data/spec/whiskey_disk/config/filters/normalize_ssh_options_filter_spec.rb +56 -0
  155. data/spec/whiskey_disk/config/filters/project_scope_filter_spec.rb +75 -0
  156. data/spec/whiskey_disk/config/filters/select_project_and_environment_filter_spec.rb +30 -0
  157. data/spec/whiskey_disk/config/filters/stringify_hash_keys_filter_spec.rb +40 -0
  158. data/spec/whiskey_disk/config_spec.rb +259 -446
  159. data/spec/whiskey_disk/helpers_spec.rb +51 -51
  160. data/spec/whiskey_disk/rake_spec.rb +80 -80
  161. data/spec/whiskey_disk_spec.rb +591 -562
  162. data/whiskey_disk.gemspec +151 -20
  163. metadata +151 -18
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,8 @@ require 'rubygems'
2
2
  require 'bacon'
3
3
  require 'facon'
4
4
  require 'fileutils'
5
+ require 'tempfile'
6
+ require 'erb'
5
7
 
6
8
  if ENV['DEBUG'] and ENV['DEBUG'] != ''
7
9
  STDERR.puts "Enabling debugger for spec runs..."
@@ -14,7 +16,7 @@ $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
14
16
 
15
17
  # local target directory, integration spec workspace
16
18
  def deployment_root
17
- '/tmp/wd-integration-target/destination/'
19
+ File.expand_path(File.join(File.dirname(__FILE__), '..', 'scenarios', 'setup', 'vagrant', 'deployed', 'target'))
18
20
  end
19
21
 
20
22
  # allow defining an integration spec block
@@ -53,16 +55,42 @@ end
53
55
 
54
56
  # build the correct local path to the deployment configuration for a given scenario
55
57
  def scenario_config(path)
58
+ return erb_scenario_config(path) if path =~ /\.erb$/
59
+ scenario_config_path(path)
60
+ end
61
+
62
+ def scenario_config_path(path)
56
63
  File.join(File.dirname(__FILE__), '..', 'scenarios', path)
57
64
  end
58
65
 
66
+ def erb_scenario_config(path)
67
+ data = File.read(scenario_config_path(path))
68
+ converted = erb_eval(data)
69
+ write_tempfile(converted)
70
+ end
71
+
72
+ def erb_eval(data)
73
+ ERB.new(data).result
74
+ end
75
+
76
+ def write_tempfile(data)
77
+ tmp_file = Tempfile.new('whiskey_disk_integration_spec_scenario')
78
+ tmp_file.puts(data)
79
+ tmp_file.close
80
+ tmp_file.path
81
+ end
82
+
59
83
  # clone a git repository locally (as if a "wd setup" had been deployed)
60
84
  def checkout_repo(repo_name, branch = nil)
61
85
  repo_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'scenarios', 'git_repositories', "#{repo_name}.git"))
62
- system("cd #{deployment_root} && git clone #{repo_path} >/dev/null 2>/dev/null")
86
+ system("cd #{deployment_root} && git clone #{repo_path} >/dev/null 2>/dev/null && cd #{repo_name} && git remote set-url origin #{remote_url(repo_name)}")
63
87
  checkout_branch(repo_name, branch)
64
88
  end
65
89
 
90
+ def remote_url(repo)
91
+ "git://wd-git.example.com/#{repo}.git"
92
+ end
93
+
66
94
  def checkout_branch(repo_name, branch = nil)
67
95
  return unless branch
68
96
  system("cd #{deployment_root}/#{repo_name} && git checkout #{branch} >/dev/null 2>/dev/null")
@@ -27,16 +27,16 @@ describe 'wd command' do
27
27
  ARGV = []
28
28
  end
29
29
 
30
- it 'should not run rake tasks' do
30
+ it 'does not run rake tasks' do
31
31
  Rake::Application.should.receive(:new).never
32
32
  lambda { run_command }
33
33
  end
34
34
 
35
- it 'should exit' do
35
+ it 'exits' do
36
36
  lambda { run_command }.should.raise(SystemExit)
37
37
  end
38
38
 
39
- it 'should exit with a failure status' do
39
+ it 'exits with a failure status' do
40
40
  begin
41
41
  run_command
42
42
  rescue Exception => e
@@ -45,13 +45,13 @@ describe 'wd command' do
45
45
  end
46
46
  end
47
47
 
48
- it 'should output usage without a backtrace when --help is specified' do
48
+ it 'outputs usage without a backtrace when --help is specified' do
49
49
  Object.send(:remove_const, :ARGV)
50
50
  ARGV = ['--help']
51
51
  lambda { run_command }.should.raise(SystemExit)
52
52
  end
53
53
 
54
- it 'should output usage without a backtrace when garbage options are specified' do
54
+ it 'outputs usage without a backtrace when garbage options are specified' do
55
55
  Object.send(:remove_const, :ARGV)
56
56
  ARGV = ['--slkjfsdflkj']
57
57
  lambda { run_command }.should.raise(SystemExit)
@@ -63,17 +63,17 @@ describe 'wd command' do
63
63
  ARGV = ['--version']
64
64
  end
65
65
 
66
- # it 'should output the version stored in the VERSION file' do
66
+ # it 'outputs the version stored in the VERSION file' do
67
67
  # version = File.read(File.expand_path(File.join(File.dirname(__FILE__), '..', 'VERSION'))).chomp
68
68
  # # TODO: capture version output
69
69
  # lambda{ run_command }
70
70
  # end
71
71
 
72
- it 'should exit' do
72
+ it 'exits' do
73
73
  lambda { run_command }.should.raise(SystemExit)
74
74
  end
75
75
 
76
- it 'should exit successfully' do
76
+ it 'exits successfully' do
77
77
  begin
78
78
  run_command
79
79
  rescue SystemExit => e
@@ -89,16 +89,16 @@ describe 'wd command' do
89
89
  end
90
90
 
91
91
  describe 'and no target is specified' do
92
- it 'should not run rake tasks' do
92
+ it 'does not run rake tasks' do
93
93
  Rake::Application.should.receive(:new).never
94
94
  lambda { run_command }
95
95
  end
96
96
 
97
- it 'should exit when a target is specified' do
97
+ it 'exits when a target is specified' do
98
98
  lambda { run_command }.should.raise(SystemExit)
99
99
  end
100
100
 
101
- it 'should exit with a failing status when a target is specified' do
101
+ it 'exits with a failing status when a target is specified' do
102
102
  begin
103
103
  run_command
104
104
  rescue SystemExit => e
@@ -115,16 +115,16 @@ describe 'wd command' do
115
115
  @rake.stub!(:invoke)
116
116
  end
117
117
 
118
- it 'should not fail' do
118
+ it 'does not fail' do
119
119
  lambda { run_command }.should.not.raise
120
120
  end
121
121
 
122
- it 'should run the deploy:setup rake task' do
122
+ it 'runs the deploy:setup rake task' do
123
123
  @rake.should.receive(:invoke)
124
124
  run_command
125
125
  end
126
126
 
127
- it 'should make the specified target available as a "to" argument to the rake task' do
127
+ it 'makes the specified target available as a "to" argument to the rake task' do
128
128
  run_command
129
129
  ENV['to'].should == 'foo'
130
130
  end
@@ -134,17 +134,17 @@ describe 'wd command' do
134
134
  ARGV.push '--path=/path/to/foo'
135
135
  end
136
136
 
137
- it 'should make the specified path available as a "path" argument to the rake task' do
137
+ it 'makes the specified path available as a "path" argument to the rake task' do
138
138
  run_command
139
139
  ENV['path'].should == '/path/to/foo'
140
140
  end
141
141
 
142
- it 'should fail if the rake task fails' do
142
+ it 'fails if the rake task fails' do
143
143
  @rake.stub!(:invoke).and_raise(RuntimeError)
144
144
  lambda { run_command }.should.raise
145
145
  end
146
146
 
147
- it 'should not fail if the rake task succeeds' do
147
+ it 'does not fail if the rake task succeeds' do
148
148
  @rake.stub!(:invoke).and_return(true)
149
149
  lambda { run_command }.should.not.raise
150
150
  end
@@ -156,33 +156,33 @@ describe 'wd command' do
156
156
  ARGV.push '/path/to/foo'
157
157
  end
158
158
 
159
- it 'should make the specified path available as a "path" argument to the rake task' do
159
+ it 'makes the specified path available as a "path" argument to the rake task' do
160
160
  run_command
161
161
  ENV['path'].should == '/path/to/foo'
162
162
  end
163
163
 
164
- it 'should fail if the rake task fails' do
164
+ it 'fails if the rake task fails' do
165
165
  @rake.stub!(:invoke).and_raise(RuntimeError)
166
166
  lambda { run_command }.should.raise
167
167
  end
168
168
 
169
- it 'should not fail if the rake task succeeds' do
169
+ it 'does not fail if the rake task succeeds' do
170
170
  @rake.stub!(:invoke).and_return(true)
171
171
  lambda { run_command }.should.not.raise
172
172
  end
173
173
  end
174
174
 
175
175
  describe 'and no --path or -p argument is specified' do
176
- it 'should not make a "path" argument available to the rake task' do
176
+ it 'does not make a "path" argument available to the rake task' do
177
177
  ENV['path'].should.be.nil
178
178
  end
179
179
 
180
- it 'should fail if the rake task fails' do
180
+ it 'fails if the rake task fails' do
181
181
  @rake.stub!(:invoke).and_raise(RuntimeError)
182
182
  lambda { run_command }.should.raise
183
183
  end
184
184
 
185
- it 'should not fail if the rake task succeeds' do
185
+ it 'does not fail if the rake task succeeds' do
186
186
  @rake.stub!(:invoke).and_return(true)
187
187
  lambda { run_command }.should.not.raise
188
188
  end
@@ -194,17 +194,17 @@ describe 'wd command' do
194
194
  ARGV.push "--only=#{@domain}"
195
195
  end
196
196
 
197
- it 'should make the specified domain available as an "only" argument to the rake task' do
197
+ it 'makes the specified domain available as an "only" argument to the rake task' do
198
198
  run_command
199
199
  ENV['only'].should == @domain
200
200
  end
201
201
 
202
- it 'should fail if the rake task fails' do
202
+ it 'fails if the rake task fails' do
203
203
  @rake.stub!(:invoke).and_raise(RuntimeError)
204
204
  lambda { run_command }.should.raise
205
205
  end
206
206
 
207
- it 'should not fail if the rake task succeeds' do
207
+ it 'does not fail if the rake task succeeds' do
208
208
  @rake.stub!(:invoke).and_return(true)
209
209
  lambda { run_command }.should.not.raise
210
210
  end
@@ -217,34 +217,34 @@ describe 'wd command' do
217
217
  ARGV.push @domain
218
218
  end
219
219
 
220
- it 'should make the specified domain available as an "only" argument to the rake task' do
220
+ it 'makes the specified domain available as an "only" argument to the rake task' do
221
221
  run_command
222
222
  ENV['only'].should == @domain
223
223
  end
224
224
 
225
- it 'should fail if the rake task fails' do
225
+ it 'fails if the rake task fails' do
226
226
  @rake.stub!(:invoke).and_raise(RuntimeError)
227
227
  lambda { run_command }.should.raise
228
228
  end
229
229
 
230
- it 'should not fail if the rake task succeeds' do
230
+ it 'does not fail if the rake task succeeds' do
231
231
  @rake.stub!(:invoke).and_return(true)
232
232
  lambda { run_command }.should.not.raise
233
233
  end
234
234
  end
235
235
 
236
236
  describe 'and no --only or -o argument is specified' do
237
- it 'should not make an "only" argument available to the rake task' do
237
+ it 'does not make an "only" argument available to the rake task' do
238
238
  run_command
239
239
  ENV['only'].should.be.nil
240
240
  end
241
241
 
242
- it 'should fail if the rake task fails' do
242
+ it 'fails if the rake task fails' do
243
243
  @rake.stub!(:invoke).and_raise(RuntimeError)
244
244
  lambda { run_command }.should.raise
245
245
  end
246
246
 
247
- it 'should not fail if the rake task succeeds' do
247
+ it 'does not fail if the rake task succeeds' do
248
248
  @rake.stub!(:invoke).and_return(true)
249
249
  lambda { run_command }.should.not.raise
250
250
  end
@@ -255,22 +255,22 @@ describe 'wd command' do
255
255
  ARGV.push '--debug'
256
256
  end
257
257
 
258
- it 'should run the deploy:now rake task' do
258
+ it 'runs the deploy:now rake task' do
259
259
  @rake.should.receive(:invoke)
260
260
  run_command
261
261
  end
262
262
 
263
- it 'should make the specified target available as a "debug" argument to the rake task' do
263
+ it 'makes the specified target available as a "debug" argument to the rake task' do
264
264
  run_command
265
265
  ENV['debug'].should == 'true'
266
266
  end
267
267
 
268
- it 'should fail if the rake task fails' do
268
+ it 'fails if the rake task fails' do
269
269
  @rake.stub!(:invoke).and_raise(RuntimeError)
270
270
  lambda { run_command }.should.raise
271
271
  end
272
272
 
273
- it 'should not fail if the rake task succeeds' do
273
+ it 'does not fail if the rake task succeeds' do
274
274
  @rake.stub!(:invoke).and_return(true)
275
275
  lambda { run_command }.should.not.raise
276
276
  end
@@ -281,44 +281,44 @@ describe 'wd command' do
281
281
  ARGV.push '-d'
282
282
  end
283
283
 
284
- it 'should run the deploy:now rake task' do
284
+ it 'runs the deploy:now rake task' do
285
285
  @rake.should.receive(:invoke)
286
286
  run_command
287
287
  end
288
288
 
289
- it 'should make the specified target available as a "debug" argument to the rake task' do
289
+ it 'makes the specified target available as a "debug" argument to the rake task' do
290
290
  run_command
291
291
  ENV['debug'].should == 'true'
292
292
  end
293
293
 
294
- it 'should fail if the rake task fails' do
294
+ it 'fails if the rake task fails' do
295
295
  @rake.stub!(:invoke).and_raise(RuntimeError)
296
296
  lambda { run_command }.should.raise
297
297
  end
298
298
 
299
- it 'should not fail if the rake task succeeds' do
299
+ it 'does not fail if the rake task succeeds' do
300
300
  @rake.stub!(:invoke).and_return(true)
301
301
  lambda { run_command }.should.not.raise
302
302
  end
303
303
  end
304
304
 
305
305
  describe 'and no --debug or -d argument is specified' do
306
- it 'should not make a "debug" argument available to the rake task' do
306
+ it 'does not make a "debug" argument available to the rake task' do
307
307
  run_command
308
308
  ENV['debug'].should.be.nil
309
309
  end
310
310
 
311
- it 'should run the deploy:now rake task' do
311
+ it 'runs the deploy:now rake task' do
312
312
  @rake.should.receive(:invoke)
313
313
  run_command
314
314
  end
315
315
 
316
- it 'should fail if the rake task fails' do
316
+ it 'fails if the rake task fails' do
317
317
  @rake.stub!(:invoke).and_raise(RuntimeError)
318
318
  lambda { run_command }.should.raise
319
319
  end
320
320
 
321
- it 'should not fail if the rake task succeeds' do
321
+ it 'does not fail if the rake task succeeds' do
322
322
  @rake.stub!(:invoke).and_return(true)
323
323
  lambda { run_command }.should.not.raise
324
324
  end
@@ -333,16 +333,16 @@ describe 'wd command' do
333
333
  @rake.stub!(:invoke)
334
334
  end
335
335
 
336
- it 'should not fail' do
336
+ it 'does not fail' do
337
337
  lambda { run_command }.should.not.raise
338
338
  end
339
339
 
340
- it 'should run the deploy:setup rake task' do
340
+ it 'runs the deploy:setup rake task' do
341
341
  @rake.should.receive(:invoke)
342
342
  run_command
343
343
  end
344
344
 
345
- it 'should make the specified target available as a "to" argument to the rake task' do
345
+ it 'makes the specified target available as a "to" argument to the rake task' do
346
346
  run_command
347
347
  ENV['to'].should == 'foo'
348
348
  end
@@ -352,17 +352,17 @@ describe 'wd command' do
352
352
  ARGV.push '--path=/path/to/foo'
353
353
  end
354
354
 
355
- it 'should make the specified path available as a "path" argument to the rake task' do
355
+ it 'makes the specified path available as a "path" argument to the rake task' do
356
356
  run_command
357
357
  ENV['path'].should == '/path/to/foo'
358
358
  end
359
359
 
360
- it 'should fail if the rake task fails' do
360
+ it 'fails if the rake task fails' do
361
361
  @rake.stub!(:invoke).and_raise(RuntimeError)
362
362
  lambda { run_command }.should.raise
363
363
  end
364
364
 
365
- it 'should not fail if the rake task succeeds' do
365
+ it 'does not fail if the rake task succeeds' do
366
366
  @rake.stub!(:invoke).and_return(true)
367
367
  lambda { run_command }.should.not.raise
368
368
  end
@@ -374,33 +374,33 @@ describe 'wd command' do
374
374
  ARGV.push '/path/to/foo'
375
375
  end
376
376
 
377
- it 'should make the specified path available as a "path" argument to the rake task' do
377
+ it 'makes the specified path available as a "path" argument to the rake task' do
378
378
  run_command
379
379
  ENV['path'].should == '/path/to/foo'
380
380
  end
381
381
 
382
- it 'should fail if the rake task fails' do
382
+ it 'fails if the rake task fails' do
383
383
  @rake.stub!(:invoke).and_raise(RuntimeError)
384
384
  lambda { run_command }.should.raise
385
385
  end
386
386
 
387
- it 'should not fail if the rake task succeeds' do
387
+ it 'does not fail if the rake task succeeds' do
388
388
  @rake.stub!(:invoke).and_return(true)
389
389
  lambda { run_command }.should.not.raise
390
390
  end
391
391
  end
392
392
 
393
393
  describe 'and no --path or -p argument is specified' do
394
- it 'should not make a "path" argument available to the rake task' do
394
+ it 'does not make a "path" argument available to the rake task' do
395
395
  ENV['path'].should.be.nil
396
396
  end
397
397
 
398
- it 'should fail if the rake task fails' do
398
+ it 'fails if the rake task fails' do
399
399
  @rake.stub!(:invoke).and_raise(RuntimeError)
400
400
  lambda { run_command }.should.raise
401
401
  end
402
402
 
403
- it 'should not fail if the rake task succeeds' do
403
+ it 'does not fail if the rake task succeeds' do
404
404
  @rake.stub!(:invoke).and_return(true)
405
405
  lambda { run_command }.should.not.raise
406
406
  end
@@ -412,17 +412,17 @@ describe 'wd command' do
412
412
  ARGV.push "--only=#{@domain}"
413
413
  end
414
414
 
415
- it 'should make the specified domain available as an "only" argument to the rake task' do
415
+ it 'makes the specified domain available as an "only" argument to the rake task' do
416
416
  run_command
417
417
  ENV['only'].should == @domain
418
418
  end
419
419
 
420
- it 'should fail if the rake task fails' do
420
+ it 'fails if the rake task fails' do
421
421
  @rake.stub!(:invoke).and_raise(RuntimeError)
422
422
  lambda { run_command }.should.raise
423
423
  end
424
424
 
425
- it 'should not fail if the rake task succeeds' do
425
+ it 'does not fail if the rake task succeeds' do
426
426
  @rake.stub!(:invoke).and_return(true)
427
427
  lambda { run_command }.should.not.raise
428
428
  end
@@ -435,34 +435,34 @@ describe 'wd command' do
435
435
  ARGV.push @domain
436
436
  end
437
437
 
438
- it 'should make the specified domain available as an "only" argument to the rake task' do
438
+ it 'makes the specified domain available as an "only" argument to the rake task' do
439
439
  run_command
440
440
  ENV['only'].should == @domain
441
441
  end
442
442
 
443
- it 'should fail if the rake task fails' do
443
+ it 'fails if the rake task fails' do
444
444
  @rake.stub!(:invoke).and_raise(RuntimeError)
445
445
  lambda { run_command }.should.raise
446
446
  end
447
447
 
448
- it 'should not fail if the rake task succeeds' do
448
+ it 'does not fail if the rake task succeeds' do
449
449
  @rake.stub!(:invoke).and_return(true)
450
450
  lambda { run_command }.should.not.raise
451
451
  end
452
452
  end
453
453
 
454
454
  describe 'and no --only or -o argument is specified' do
455
- it 'should not make an "only" argument available to the rake task' do
455
+ it 'does not make an "only" argument available to the rake task' do
456
456
  run_command
457
457
  ENV['only'].should.be.nil
458
458
  end
459
459
 
460
- it 'should fail if the rake task fails' do
460
+ it 'fails if the rake task fails' do
461
461
  @rake.stub!(:invoke).and_raise(RuntimeError)
462
462
  lambda { run_command }.should.raise
463
463
  end
464
464
 
465
- it 'should not fail if the rake task succeeds' do
465
+ it 'does not fail if the rake task succeeds' do
466
466
  @rake.stub!(:invoke).and_return(true)
467
467
  lambda { run_command }.should.not.raise
468
468
  end
@@ -477,16 +477,16 @@ describe 'wd command' do
477
477
  end
478
478
 
479
479
  describe 'but no target is specified' do
480
- it 'should not run rake tasks' do
480
+ it 'does not run rake tasks' do
481
481
  Rake::Application.should.receive(:new).never
482
482
  lambda { run_command }
483
483
  end
484
484
 
485
- it 'should exit when a target is specified' do
485
+ it 'exits when a target is specified' do
486
486
  lambda { run_command }.should.raise(SystemExit)
487
487
  end
488
488
 
489
- it 'should exit with a failing status when a target is specified' do
489
+ it 'exits with a failing status when a target is specified' do
490
490
  begin
491
491
  run_command
492
492
  rescue SystemExit => e
@@ -502,16 +502,16 @@ describe 'wd command' do
502
502
  @rake.stub!(:invoke)
503
503
  end
504
504
 
505
- it 'should not fail' do
505
+ it 'does not fail' do
506
506
  lambda { run_command }.should.not.raise
507
507
  end
508
508
 
509
- it 'should run the deploy:now rake task' do
509
+ it 'runs the deploy:now rake task' do
510
510
  @rake.should.receive(:invoke)
511
511
  run_command
512
512
  end
513
513
 
514
- it 'should make the specified target available as a "to" argument to the rake task' do
514
+ it 'makes the specified target available as a "to" argument to the rake task' do
515
515
  run_command
516
516
  ENV['to'].should == 'foo'
517
517
  end
@@ -523,16 +523,16 @@ describe 'wd command' do
523
523
  @rake.stub!(:invoke)
524
524
  end
525
525
 
526
- it 'should not fail' do
526
+ it 'does not fail' do
527
527
  lambda { run_command }.should.not.raise
528
528
  end
529
529
 
530
- it 'should run the deploy:now rake task' do
530
+ it 'runs the deploy:now rake task' do
531
531
  @rake.should.receive(:invoke)
532
532
  run_command
533
533
  end
534
534
 
535
- it 'should make the specified target available as a "check" argument to the rake task' do
535
+ it 'makes the specified target available as a "check" argument to the rake task' do
536
536
  run_command
537
537
  ENV['check'].should == 'true'
538
538
  end
@@ -545,33 +545,33 @@ describe 'wd command' do
545
545
  @rake.stub!(:invoke)
546
546
  end
547
547
 
548
- it 'should not fail' do
548
+ it 'does not fail' do
549
549
  lambda { run_command }.should.not.raise
550
550
  end
551
551
 
552
- it 'should run the deploy:now rake task' do
552
+ it 'runs the deploy:now rake task' do
553
553
  @rake.should.receive(:invoke)
554
554
  run_command
555
555
  end
556
556
 
557
- it 'should make the specified target available as a "check" argument to the rake task' do
557
+ it 'makes the specified target available as a "check" argument to the rake task' do
558
558
  run_command
559
559
  ENV['check'].should == 'true'
560
560
  end
561
561
  end
562
562
 
563
563
  describe 'and no --check or -c argument is specified' do
564
- it 'should not make a "check" argument available to the rake task' do
564
+ it 'does not make a "check" argument available to the rake task' do
565
565
  run_command
566
566
  ENV['check'].should.be.nil
567
567
  end
568
568
 
569
- it 'should fail if the rake task fails' do
569
+ it 'fails if the rake task fails' do
570
570
  @rake.stub!(:invoke).and_raise(RuntimeError)
571
571
  lambda { run_command }.should.raise
572
572
  end
573
573
 
574
- it 'should not fail if the rake task succeeds' do
574
+ it 'does not fail if the rake task succeeds' do
575
575
  @rake.stub!(:invoke).and_return(true)
576
576
  lambda { run_command }.should.not.raise
577
577
  end
@@ -582,17 +582,17 @@ describe 'wd command' do
582
582
  ARGV.push '--path=/path/to/foo'
583
583
  end
584
584
 
585
- it 'should make the specified path available as a "path" argument to the rake task' do
585
+ it 'makes the specified path available as a "path" argument to the rake task' do
586
586
  run_command
587
587
  ENV['path'].should == '/path/to/foo'
588
588
  end
589
589
 
590
- it 'should fail if the rake task fails' do
590
+ it 'fails if the rake task fails' do
591
591
  @rake.stub!(:invoke).and_raise(RuntimeError)
592
592
  lambda { run_command }.should.raise
593
593
  end
594
594
 
595
- it 'should not fail if the rake task succeeds' do
595
+ it 'does not fail if the rake task succeeds' do
596
596
  @rake.stub!(:invoke).and_return(true)
597
597
  lambda { run_command }.should.not.raise
598
598
  end
@@ -604,34 +604,34 @@ describe 'wd command' do
604
604
  ARGV.push '/path/to/foo'
605
605
  end
606
606
 
607
- it 'should make the specified path available as a "path" argument to the rake task' do
607
+ it 'makes the specified path available as a "path" argument to the rake task' do
608
608
  run_command
609
609
  ENV['path'].should == '/path/to/foo'
610
610
  end
611
611
 
612
- it 'should fail if the rake task fails' do
612
+ it 'fails if the rake task fails' do
613
613
  @rake.stub!(:invoke).and_raise(RuntimeError)
614
614
  lambda { run_command }.should.raise
615
615
  end
616
616
 
617
- it 'should not fail if the rake task succeeds' do
617
+ it 'does not fail if the rake task succeeds' do
618
618
  @rake.stub!(:invoke).and_return(true)
619
619
  lambda { run_command }.should.not.raise
620
620
  end
621
621
  end
622
622
 
623
623
  describe 'and no --path or -p argument is specified' do
624
- it 'should not make a "path" argument available to the rake task' do
624
+ it 'does not make a "path" argument available to the rake task' do
625
625
  run_command
626
626
  ENV['path'].should.be.nil
627
627
  end
628
628
 
629
- it 'should fail if the rake task fails' do
629
+ it 'fails if the rake task fails' do
630
630
  @rake.stub!(:invoke).and_raise(RuntimeError)
631
631
  lambda { run_command }.should.raise
632
632
  end
633
633
 
634
- it 'should not fail if the rake task succeeds' do
634
+ it 'does not fail if the rake task succeeds' do
635
635
  @rake.stub!(:invoke).and_return(true)
636
636
  lambda { run_command }.should.not.raise
637
637
  end
@@ -643,17 +643,17 @@ describe 'wd command' do
643
643
  ARGV.push "--only=#{@domain}"
644
644
  end
645
645
 
646
- it 'should make the specified domain available as an "only" argument to the rake task' do
646
+ it 'makes the specified domain available as an "only" argument to the rake task' do
647
647
  run_command
648
648
  ENV['only'].should == @domain
649
649
  end
650
650
 
651
- it 'should fail if the rake task fails' do
651
+ it 'fails if the rake task fails' do
652
652
  @rake.stub!(:invoke).and_raise(RuntimeError)
653
653
  lambda { run_command }.should.raise
654
654
  end
655
655
 
656
- it 'should not fail if the rake task succeeds' do
656
+ it 'does not fail if the rake task succeeds' do
657
657
  @rake.stub!(:invoke).and_return(true)
658
658
  lambda { run_command }.should.not.raise
659
659
  end
@@ -666,34 +666,34 @@ describe 'wd command' do
666
666
  ARGV.push @domain
667
667
  end
668
668
 
669
- it 'should make the specified domain available as an "only" argument to the rake task' do
669
+ it 'makes the specified domain available as an "only" argument to the rake task' do
670
670
  run_command
671
671
  ENV['only'].should == @domain
672
672
  end
673
673
 
674
- it 'should fail if the rake task fails' do
674
+ it 'fails if the rake task fails' do
675
675
  @rake.stub!(:invoke).and_raise(RuntimeError)
676
676
  lambda { run_command }.should.raise
677
677
  end
678
678
 
679
- it 'should not fail if the rake task succeeds' do
679
+ it 'does not fail if the rake task succeeds' do
680
680
  @rake.stub!(:invoke).and_return(true)
681
681
  lambda { run_command }.should.not.raise
682
682
  end
683
683
  end
684
684
 
685
685
  describe 'and no --only or -o argument is specified' do
686
- it 'should not make an "only" argument available to the rake task' do
686
+ it 'does not make an "only" argument available to the rake task' do
687
687
  run_command
688
688
  ENV['only'].should.be.nil
689
689
  end
690
690
 
691
- it 'should fail if the rake task fails' do
691
+ it 'fails if the rake task fails' do
692
692
  @rake.stub!(:invoke).and_raise(RuntimeError)
693
693
  lambda { run_command }.should.raise
694
694
  end
695
695
 
696
- it 'should not fail if the rake task succeeds' do
696
+ it 'does not fail if the rake task succeeds' do
697
697
  @rake.stub!(:invoke).and_return(true)
698
698
  lambda { run_command }.should.not.raise
699
699
  end
@@ -708,16 +708,16 @@ describe 'wd command' do
708
708
  @rake.stub!(:invoke)
709
709
  end
710
710
 
711
- it 'should not fail' do
711
+ it 'does not fail' do
712
712
  lambda { run_command }.should.not.raise
713
713
  end
714
714
 
715
- it 'should run the deploy:now rake task' do
715
+ it 'runs the deploy:now rake task' do
716
716
  @rake.should.receive(:invoke)
717
717
  run_command
718
718
  end
719
719
 
720
- it 'should make the specified target available as a "to" argument to the rake task' do
720
+ it 'makes the specified target available as a "to" argument to the rake task' do
721
721
  run_command
722
722
  ENV['to'].should == 'foo'
723
723
  end
@@ -729,16 +729,16 @@ describe 'wd command' do
729
729
  @rake.stub!(:invoke)
730
730
  end
731
731
 
732
- it 'should not fail' do
732
+ it 'does not fail' do
733
733
  lambda { run_command }.should.not.raise
734
734
  end
735
735
 
736
- it 'should run the deploy:now rake task' do
736
+ it 'runs the deploy:now rake task' do
737
737
  @rake.should.receive(:invoke)
738
738
  run_command
739
739
  end
740
740
 
741
- it 'should make the specified target available as a "check" argument to the rake task' do
741
+ it 'makes the specified target available as a "check" argument to the rake task' do
742
742
  run_command
743
743
  ENV['check'].should == 'true'
744
744
  end
@@ -751,33 +751,33 @@ describe 'wd command' do
751
751
  @rake.stub!(:invoke)
752
752
  end
753
753
 
754
- it 'should not fail' do
754
+ it 'does not fail' do
755
755
  lambda { run_command }.should.not.raise
756
756
  end
757
757
 
758
- it 'should run the deploy:now rake task' do
758
+ it 'runs the deploy:now rake task' do
759
759
  @rake.should.receive(:invoke)
760
760
  run_command
761
761
  end
762
762
 
763
- it 'should make the specified target available as a "check" argument to the rake task' do
763
+ it 'makes the specified target available as a "check" argument to the rake task' do
764
764
  run_command
765
765
  ENV['check'].should == 'true'
766
766
  end
767
767
  end
768
768
 
769
769
  describe 'and no --check or -c argument is specified' do
770
- it 'should not make a "check" argument available to the rake task' do
770
+ it 'does not make a "check" argument available to the rake task' do
771
771
  run_command
772
772
  ENV['check'].should.be.nil
773
773
  end
774
774
 
775
- it 'should fail if the rake task fails' do
775
+ it 'fails if the rake task fails' do
776
776
  @rake.stub!(:invoke).and_raise(RuntimeError)
777
777
  lambda { run_command }.should.raise
778
778
  end
779
779
 
780
- it 'should not fail if the rake task succeeds' do
780
+ it 'does not fail if the rake task succeeds' do
781
781
  @rake.stub!(:invoke).and_return(true)
782
782
  lambda { run_command }.should.not.raise
783
783
  end
@@ -788,17 +788,17 @@ describe 'wd command' do
788
788
  ARGV.push '--path=/path/to/foo'
789
789
  end
790
790
 
791
- it 'should make the specified path available as a "path" argument to the rake task' do
791
+ it 'makes the specified path available as a "path" argument to the rake task' do
792
792
  run_command
793
793
  ENV['path'].should == '/path/to/foo'
794
794
  end
795
795
 
796
- it 'should fail if the rake task fails' do
796
+ it 'fails if the rake task fails' do
797
797
  @rake.stub!(:invoke).and_raise(RuntimeError)
798
798
  lambda { run_command }.should.raise
799
799
  end
800
800
 
801
- it 'should not fail if the rake task succeeds' do
801
+ it 'does not fail if the rake task succeeds' do
802
802
  @rake.stub!(:invoke).and_return(true)
803
803
  lambda { run_command }.should.not.raise
804
804
  end
@@ -810,33 +810,33 @@ describe 'wd command' do
810
810
  ARGV.push '/path/to/foo'
811
811
  end
812
812
 
813
- it 'should make the specified path available as a "path" argument to the rake task' do
813
+ it 'makes the specified path available as a "path" argument to the rake task' do
814
814
  run_command
815
815
  ENV['path'].should == '/path/to/foo'
816
816
  end
817
817
 
818
- it 'should fail if the rake task fails' do
818
+ it 'fails if the rake task fails' do
819
819
  @rake.stub!(:invoke).and_raise(RuntimeError)
820
820
  lambda { run_command }.should.raise
821
821
  end
822
822
 
823
- it 'should not fail if the rake task succeeds' do
823
+ it 'does not fail if the rake task succeeds' do
824
824
  @rake.stub!(:invoke).and_return(true)
825
825
  lambda { run_command }.should.not.raise
826
826
  end
827
827
  end
828
828
 
829
829
  describe 'and no --path or -p argument is specified' do
830
- it 'should not make a "path" argument available to the rake task' do
830
+ it 'does not make a "path" argument available to the rake task' do
831
831
  ENV['path'].should.be.nil
832
832
  end
833
833
 
834
- it 'should fail if the rake task fails' do
834
+ it 'fails if the rake task fails' do
835
835
  @rake.stub!(:invoke).and_raise(RuntimeError)
836
836
  lambda { run_command }.should.raise
837
837
  end
838
838
 
839
- it 'should not fail if the rake task succeeds' do
839
+ it 'does not fail if the rake task succeeds' do
840
840
  @rake.stub!(:invoke).and_return(true)
841
841
  lambda { run_command }.should.not.raise
842
842
  end
@@ -848,17 +848,17 @@ describe 'wd command' do
848
848
  ARGV.push "--only=#{@domain}"
849
849
  end
850
850
 
851
- it 'should make the specified domain available as an "only" argument to the rake task' do
851
+ it 'makes the specified domain available as an "only" argument to the rake task' do
852
852
  run_command
853
853
  ENV['only'].should == @domain
854
854
  end
855
855
 
856
- it 'should fail if the rake task fails' do
856
+ it 'fails if the rake task fails' do
857
857
  @rake.stub!(:invoke).and_raise(RuntimeError)
858
858
  lambda { run_command }.should.raise
859
859
  end
860
860
 
861
- it 'should not fail if the rake task succeeds' do
861
+ it 'does not fail if the rake task succeeds' do
862
862
  @rake.stub!(:invoke).and_return(true)
863
863
  lambda { run_command }.should.not.raise
864
864
  end
@@ -871,34 +871,34 @@ describe 'wd command' do
871
871
  ARGV.push @domain
872
872
  end
873
873
 
874
- it 'should make the specified domain available as an "only" argument to the rake task' do
874
+ it 'makes the specified domain available as an "only" argument to the rake task' do
875
875
  run_command
876
876
  ENV['only'].should == @domain
877
877
  end
878
878
 
879
- it 'should fail if the rake task fails' do
879
+ it 'fails if the rake task fails' do
880
880
  @rake.stub!(:invoke).and_raise(RuntimeError)
881
881
  lambda { run_command }.should.raise
882
882
  end
883
883
 
884
- it 'should not fail if the rake task succeeds' do
884
+ it 'does not fail if the rake task succeeds' do
885
885
  @rake.stub!(:invoke).and_return(true)
886
886
  lambda { run_command }.should.not.raise
887
887
  end
888
888
  end
889
889
 
890
890
  describe 'and no --only or -o argument is specified' do
891
- it 'should not make an "only" argument available to the rake task' do
891
+ it 'does not make an "only" argument available to the rake task' do
892
892
  run_command
893
893
  ENV['only'].should.be.nil
894
894
  end
895
895
 
896
- it 'should fail if the rake task fails' do
896
+ it 'fails if the rake task fails' do
897
897
  @rake.stub!(:invoke).and_raise(RuntimeError)
898
898
  lambda { run_command }.should.raise
899
899
  end
900
900
 
901
- it 'should not fail if the rake task succeeds' do
901
+ it 'does not fail if the rake task succeeds' do
902
902
  @rake.stub!(:invoke).and_return(true)
903
903
  lambda { run_command }.should.not.raise
904
904
  end
@@ -913,11 +913,11 @@ describe 'wd command' do
913
913
  end
914
914
 
915
915
  describe 'when no target is specified' do
916
- it 'should exit when a target is specified' do
916
+ it 'exits when a target is specified' do
917
917
  lambda { run_command }.should.raise(SystemExit)
918
918
  end
919
919
 
920
- it 'should exit with a failing status when a target is specified' do
920
+ it 'exits with a failing status when a target is specified' do
921
921
  begin
922
922
  run_command
923
923
  rescue SystemExit => e
@@ -931,11 +931,11 @@ describe 'wd command' do
931
931
  ARGV.push('--to=foo')
932
932
  end
933
933
 
934
- it 'should exit when a target is specified' do
934
+ it 'exits when a target is specified' do
935
935
  lambda { run_command }.should.raise(SystemExit)
936
936
  end
937
937
 
938
- it 'should exit with a failing status when a target is specified' do
938
+ it 'exits with a failing status when a target is specified' do
939
939
  begin
940
940
  run_command
941
941
  rescue SystemExit => e
@@ -952,11 +952,11 @@ describe 'wd command' do
952
952
  end
953
953
 
954
954
  describe 'when no target is specified' do
955
- it 'should exit when a target is specified' do
955
+ it 'exits when a target is specified' do
956
956
  lambda { run_command }.should.raise(SystemExit)
957
957
  end
958
958
 
959
- it 'should exit with a failing status when a target is specified' do
959
+ it 'exits with a failing status when a target is specified' do
960
960
  begin
961
961
  run_command
962
962
  rescue SystemExit => e
@@ -970,11 +970,11 @@ describe 'wd command' do
970
970
  ARGV.push('--to=foo')
971
971
  end
972
972
 
973
- it 'should exit when a target is specified' do
973
+ it 'exits when a target is specified' do
974
974
  lambda { run_command }.should.raise(SystemExit)
975
975
  end
976
976
 
977
- it 'should exit with a failing status when a target is specified' do
977
+ it 'exits with a failing status when a target is specified' do
978
978
  begin
979
979
  run_command
980
980
  rescue SystemExit => e