Skip to content

Commit 0e10139

Browse files
author
Ken Mayer
committed
Add module wrappers around specs
1 parent d02583d commit 0e10139

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

Diff for: spec/heroku_san/api_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'spec_helper'
22

33
# https://github.com/fastestforward/heroku_san/issues/105
4+
module HerokuSan
45
describe HerokuSan::API do
56
subject(:api) { HerokuSan::API.new(:api_key => 'key', :mock => true)}
67
it "is a proxy to the Heroku::API" do
@@ -23,3 +24,4 @@
2324
}
2425
end
2526
end
27+
end

Diff for: spec/heroku_san/configuration_spec.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'spec_helper'
22

3+
module HerokuSan
34
describe HerokuSan::Configuration do
45
let(:configurable) { Configurable.new }
56
let(:configuration) { HerokuSan::Configuration.new(configurable) }
@@ -38,4 +39,5 @@
3839
end
3940
end
4041
end
41-
end
42+
end
43+
end

Diff for: spec/heroku_san/parser_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'spec_helper'
22

3+
module HerokuSan
34
describe HerokuSan::Parser do
45
let(:parser) { subject }
56

@@ -86,3 +87,4 @@
8687
end
8788
end
8889
end
90+
end

Diff for: spec/heroku_san/project_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'spec_helper'
22
require 'tmpdir'
33

4+
module HerokuSan
45
describe HerokuSan::Project do
56
let(:heroku_san) { HerokuSan::Project.new }
67
subject { heroku_san }
@@ -82,3 +83,4 @@
8283
end
8384
end
8485
end
86+
end

Diff for: spec/heroku_san/stage_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'spec_helper'
22

3+
module HerokuSan
34
describe HerokuSan::Stage do
45
include HerokuSan::Git
56
subject { HerokuSan::Stage.new('production', {"deploy" => HerokuSan::Deploy::Rails, "app" => "awesomeapp", "stack" => "cedar"})}
@@ -282,3 +283,4 @@ def deploy; end
282283
end
283284
end
284285
end
286+
end

0 commit comments

Comments
 (0)