Skip to content

Commit 8943991

Browse files
committed
Move ChefSpec tests to test/unit
1 parent e178579 commit 8943991

File tree

9 files changed

+5
-4
lines changed

9 files changed

+5
-4
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ task :clean do
3939
Berksfile.lock
4040
.bundle
4141
.cache
42+
coverage
4243
Gemfile.lock
4344
.kitchen
4445
metadata.json
@@ -74,7 +75,7 @@ task :unit do
7475
require 'rspec/core/rake_task'
7576
RSpec::Core::RakeTask.new(:unit) do |t|
7677
t.rspec_opts = '--color --format progress'
77-
t.pattern = 'spec/**{,/*/**}/*_spec.rb'
78+
t.pattern = 'test/unit/**{,/*/**}/*_spec.rb'
7879
end
7980
end
8081

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

spec/recipes/default_spec.rb renamed to test/unit/recipes/default_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# limitations under the License.
1818
#
1919

20-
require 'spec_helper'
20+
require_relative '../spec_helper'
2121

2222
describe 'filesystem_resize::default' do
2323
let(:chef_runner) { ChefSpec::ServerRunner.new }

spec/spec_helper.rb renamed to test/unit/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
# limitations under the License.
1818
#
1919

20-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'libraries'))
20+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'libraries'))
2121

2222
require 'chefspec'
2323
require 'chefspec/berkshelf'
24-
require 'support/stubs'
24+
require_relative 'support/stubs'
2525

2626
RSpec.configure do |config|
2727
# Prohibit using the should syntax
File renamed without changes.

0 commit comments

Comments
 (0)