ezekg / sass-prof

A code profiler for Sass libraries
MIT License
25 stars 1 forks source link

Add proper Rspec tests #10

Open ezekg opened 8 years ago

chriseppstein commented 8 years ago

Also interesting: A test case that compiles some file and fails if some performance criteria is unmet.

ezekg commented 8 years ago

Is there a way to compile a string of Sass code from within Ruby (without actually creating any Sass files)? That might make those types of tests easier to manage.

chriseppstein commented 8 years ago

Yep. Sass.compile https://github.com/sass/sass/blob/stable/lib/sass.rb#L55