Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
streamline tests, switch to minitest
- Loading branch information
Showing
29 changed files
with
119 additions
and
258 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
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
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
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,13 +1,9 @@ | ||
require 'test_helper' | ||
|
||
class CompassTest < Test::Unit::TestCase | ||
class CompassTest < Minitest::Test | ||
def test_create_project | ||
command = 'rm -rf tmp/new-compass-project; bundle exec compass create tmp/new-compass-project -r bootstrap-sass --using bootstrap --trace --force' | ||
success = if ENV['VERBOSE'] | ||
system command | ||
else | ||
silence_stream(STDOUT) { system(command) } | ||
end | ||
success = silence_stdout_if(!ENV['VERBOSE']) { system(command) } | ||
assert success, 'Compass project creation failed!' | ||
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,17 +1,17 @@ | ||
require 'test_helper' | ||
require 'fileutils' | ||
require 'sass' | ||
|
||
class CompilationTest < Test::Unit::TestCase | ||
class CompilationTest < Minitest::Test | ||
def test_compilation | ||
path = 'assets/stylesheets' | ||
%w(_bootstrap bootstrap/_theme).each do |file| | ||
engine = Sass::Engine.for_file("#{path}/#{file}.scss", syntax: :scss, load_paths: [path]) | ||
assert_nothing_raised do | ||
FileUtils.mkdir_p("tmp/#{File.dirname(file)}") | ||
File.open("tmp/#{file}.css", 'w') { |f| | ||
f.write engine.render | ||
} | ||
end | ||
FileUtils.mkdir_p("tmp/#{File.dirname(file)}") | ||
File.open("tmp/#{file}.css", 'w') { |f| | ||
f.write engine.render | ||
} | ||
assert true # nothing was raised | ||
end | ||
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,3 +1,3 @@ | ||
== README | ||
|
||
This is a dummy app for testing REP | ||
This is a minimal Rails app for testing |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
require 'test_helper' | ||
require 'fileutils' | ||
|
||
class NodeSassTest < Test::Unit::TestCase | ||
class NodeSassTest < Minitest::Test | ||
def test_node_sass_compilation | ||
path = 'assets/stylesheets' | ||
%w(bootstrap bootstrap/_theme).each do |file| | ||
FileUtils.mkdir_p "tmp/node-sass" | ||
FileUtils.mkdir_p 'tmp/node-sass' | ||
command = "node-sass #{path}/#{file} -o tmp/node-sass/#{File.basename file}.css" | ||
assert silence_stream(STDOUT) { | ||
system(command) | ||
}, 'node-sass compilation failed' | ||
success = silence_stderr_if !ENV['VERBOSE'] do | ||
system command | ||
end | ||
assert success, 'node-sass compilation failed' | ||
end | ||
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
Oops, something went wrong.