Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up spec tree like chef, to add room for other tests and make room for support files. Also include platform helpers from Chef to use as exclusions.
- Loading branch information
Showing
64 changed files
with
44 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
def ruby_19? | ||
!!(RUBY_VERSION =~ /^1.9/) | ||
end | ||
|
||
def ruby_18? | ||
!!(RUBY_VERSION =~ /^1.8/) | ||
end | ||
|
||
def windows? | ||
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/) | ||
end | ||
|
||
# def jruby? | ||
|
||
def unix? | ||
!windows? | ||
end | ||
|
||
def os_x? | ||
!!(RUBY_PLATFORM =~ /darwin/) | ||
end | ||
|
||
def solaris? | ||
!!(RUBY_PLATFORM =~ /solaris/) | ||
end | ||
|
||
def freebsd? | ||
!!(RUBY_PLATFORM =~ /freebsd/) | ||
end | ||
|
||
DEV_NULL = windows? ? 'NUL' : '/dev/null' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.