Permalink
Browse files

implement new rspec test: 'should convert basic css structure into le…

…ss structure'
  • Loading branch information...
1 parent 63a7f47 commit fd29a36aa7964c4bd755a58b0c3be4902fc91df9 @thomaspierson committed Feb 3, 2013
Showing with 26 additions and 0 deletions.
  1. +26 −0 spec/css2less_spec.rb
View
@@ -6,3 +6,29 @@
subject.const_get('VERSION').should_not be_empty
end
end
+
+describe Css2Less::Converter do
+ it "should convert basic css structure into less structure" do
+ css = <<EOF
+#hello {
+ color: blue;
+}
+
+#hello #buddy {
+ background: red;
+}
+EOF
+ less = <<EOF
+#hello {
+ color: blue;
+ #buddy {
+ background: red;
+ }
+}
+EOF
+ converter = Css2Less::Converter.new(css)
+ converter.process_less
+ converter.get_less.should eq(less)
+ end
+
+end

0 comments on commit fd29a36

Please sign in to comment.