-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steven Richardson
committed
Oct 17, 2015
1 parent
f0195ee
commit f80e7d5
Showing
2 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
require 'spec_helper' | ||
require 'capistrano' | ||
|
||
describe Richdynamix::Ghostinspector, "loaded into a configuration" do | ||
before do | ||
@configuration = Capistrano::Configuration.new | ||
Richdynamix::Ghostinspector.load_into(@configuration) | ||
@configuration.set :gitest, 'home' | ||
end | ||
describe "Ghostinspector" do | ||
before do | ||
@configuration = Capistrano::Configuration.new | ||
@configuration.extend(Capistrano::Spec::ConfigurationExtension) | ||
|
||
Capistrano::Ghostinspector.load_into(@configuration) | ||
end | ||
|
||
describe 'run' do | ||
subject { @configuration } | ||
|
||
it "should define tests" do | ||
context "when running capistrano:ghostinspector:run" do | ||
before do | ||
@configuration.set :gitest, 'home' | ||
end | ||
|
||
it "it should define tests" do | ||
@configuration.fetch(:gitest).should == 'home' | ||
end | ||
|
||
end | ||
|
||
before do | ||
@configuration.set :gitest, 'home' | ||
end | ||
end | ||
|
||
|
||
|
||
|
||
|
||
|
||
it "performs richdynamix:ghostinspector:run after deploy" do | ||
@configuration.should callback('richdynamix:ghostinspector:run').after('deploy') | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
require 'capistrano' | ||
require 'capistrano-spec' | ||
|
||
require 'capistrano-spec' | ||
require 'rspec' | ||
|
||
# Add capistrano-spec matchers and helpers to RSpec | ||
RSpec.configure do |config| | ||
config.include Capistrano::Spec::Matchers | ||
config.include Capistrano::Spec::Helpers | ||
end |