Skip to content

Commit

Permalink
implement new rspec test: 'should convert basic css structure into le…
Browse files Browse the repository at this point in the history
…ss structure'
  • Loading branch information
thomaspierson committed Feb 3, 2013
1 parent 63a7f47 commit fd29a36
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions spec/css2less_spec.rb
Expand Up @@ -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.