capistrano-spec 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -124,13 +124,36 @@ One thing you might be wondering now is... that's cool, but what about working w
124
124
  @configuration.should have_gotten('/tmp/bar').to('bar')
125
125
  end
126
126
 
127
+ You also test [callbacks](http://rubydoc.info/github/capistrano/capistrano/master/Capistrano/Configuration/Callbacks) to see if your tasks are being called at the right time:
128
+
129
+ require 'capistrano'
130
+ module Capistrano
131
+ module Speak
132
+ def self.load_into(configuration)
133
+ configuration.load do
134
+ before "deploy:finalize_update", "foo:bar"
135
+ namespace :foo do
136
+ task :bar do
137
+ set :message, 'before finalize'
138
+ puts message
139
+ end
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
145
+
146
+ it "performs foo:bar before deploy:finalize_update" do
147
+ @configuration.should callback('foo:bar').before('deploy:finalize_update')
148
+ end
149
+
127
150
  == Real world examples
128
151
 
129
152
  * [capistrano-mountaintop](https://github.com/technicalpickles/capistrano-mountaintop/blob/master/spec/capistrano-mountaintop_spec.rb)
130
153
  * [moonshine](https://github.com/railsmachine/moonshine/blob/master/spec/moonshine/capistrano_integration_spec.rb)
131
154
 
132
155
  == Note on Patches/Pull Requests
133
-
156
+
134
157
  * Fork the project.
135
158
  * Make your feature addition or bug fix.
136
159
  * Add tests for it. This is important so I don't break it in a future version unintentionally.
data/Rakefile CHANGED
@@ -5,13 +5,13 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "capistrano-spec"
8
- gem.version = '0.2.0'
8
+ gem.version = '0.2.1'
9
9
 
10
10
  gem.summary = %Q{Test your capistrano recipes}
11
11
  gem.description = %Q{Helpers and matchers for testing capistrano}
12
12
  gem.email = "josh@technicalpickles.com"
13
13
  gem.homepage = "http://github.com/technicalpickles/capistrano-spec"
14
- gem.authors = ["Joshua Nichols", "Karl Matthias"]
14
+ gem.authors = ["Joshua Nichols", "Karl Matthias", "petems"]
15
15
  gem.add_development_dependency "rspec", ">= 2.0.0"
16
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
17
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-spec"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Joshua Nichols", "Karl Matthias"]
12
- s.date = "2013-03-25"
11
+ s.authors = ["Joshua Nichols", "Karl Matthias", "petems"]
12
+ s.date = "2013-03-27"
13
13
  s.description = "Helpers and matchers for testing capistrano"
14
14
  s.email = "josh@technicalpickles.com"
15
15
  s.extra_rdoc_files = [
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,6 @@ require 'capistrano-spec'
4
4
  require 'rspec'
5
5
  require 'rspec/autorun'
6
6
 
7
- Spec::Runner.configure do |config|
8
-
7
+ RSpec.configure do |config|
8
+
9
9
  end
metadata CHANGED
@@ -1,20 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Joshua Nichols
9
9
  - Karl Matthias
10
+ - petems
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2013-03-25 00:00:00.000000000 Z
14
+ date: 2013-03-27 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rspec
17
- requirement: &2160210760 !ruby/object:Gem::Requirement
18
+ requirement: &2160319160 !ruby/object:Gem::Requirement
18
19
  none: false
19
20
  requirements:
20
21
  - - ! '>='
@@ -22,7 +23,7 @@ dependencies:
22
23
  version: 2.0.0
23
24
  type: :development
24
25
  prerelease: false
25
- version_requirements: *2160210760
26
+ version_requirements: *2160319160
26
27
  description: Helpers and matchers for testing capistrano
27
28
  email: josh@technicalpickles.com
28
29
  executables: []