Skip to content

Commit 6d4cf7d

Browse files
committed
(MAINT) Restructure spec files
This commit restructures the files in spec. It moves all existing tests in to a new folder called unit. This is to make way for acceptance tests that will live in a folder called acceptance. Additionally the Rakefile has been updated to exclude files that are not unit tests for the `spec` task.
1 parent 3670bb7 commit 6d4cf7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+13
-1
lines changed

Rakefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ else
2020
end
2121
end
2222

23-
RSpec::Core::RakeTask.new(:spec)
23+
begin
24+
require 'puppet_litmus/rake_tasks'
25+
rescue LoadError
26+
# Gem not present
27+
end
28+
29+
require 'puppetlabs_spec_helper/tasks/fixtures'
30+
31+
32+
RSpec::Core::RakeTask.new(:spec) do |t|
33+
t.exclude_pattern = 'spec/acceptance/**/*_spec.rb'
34+
end
35+
2436
task :default => :test
2537

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

0 commit comments

Comments
 (0)