File tree Expand file tree Collapse file tree 2 files changed +20
-25
lines changed
Expand file tree Collapse file tree 2 files changed +20
-25
lines changed Original file line number Diff line number Diff line change 1- # css2sass
1+ css2sass
2+ ========
23
34[ http://css2sass.heroku.com/ ] ( http://css2sass.heroku.com/ )
45
@@ -8,32 +9,27 @@ It's heavily inspired by the [html2haml app](http://html2haml.heroku.com/)
89
910## Usage
1011
11- 1 - Paste the CSS in the first box
12- 2 - click convert
13- 3 - Done!
12+ * Paste the CSS in the first box
13+ * click convert
14+ * Done!
1415
1516## API
1617
17- It currently supports properly with json and xml.
18+ json and xml.
1819
1920## Testing
2021
21- [ RSpec] ( http://wiki.github.com/dchelimsky/rspec )
22-
23- [ Sinatra testing] ( http://www.sinatrarb.com/testing.html )
24-
25- See ` css2sass_spec.rb `
22+ See ` test/test_css2sass.rb `
2623
2724## TODO
2825
2926* Flash warnings TODO:!
30- * Better tests.
27+ * More tests.
3128
3229## Resources
3330
34- * [ Sinatra] ( http://www.sinatrarb.com )
35- * [ Mongodb] ( http://www.mongodb.org )
36- * [ SASS] ( http://sass-lang.com/ )
31+ * [ Sinatra] ( http://www.sinatrarb.com )
32+ * [ SASS] ( http://sass-lang.com/ )
3733
3834## Note on Patches/Pull Requests
3935
Original file line number Diff line number Diff line change @@ -14,16 +14,15 @@ def test_it_says_hello_world
1414 end
1515
1616 def test_api_speak_json
17- p @browser . post '/json' , json_post
17+ @browser . post '/json' , json_post
1818 assert @browser . last_response . ok?
1919 assert_match json_response , @browser . last_response . body
2020 end
2121
2222 def test_api_speak_xml
23- p @browser . post '/xml' , xml_post
23+ @browser . post '/xml' , xml_post
2424 assert @browser . last_response . ok?
2525 assert_match xml_response , @browser . last_response . body
26-
2726 end
2827
2928 def home_title
@@ -54,14 +53,14 @@ def xml_post
5453
5554 def xml_response
5655 "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n " +
57- "<page>\n " +
58- "<css>\n " +
59- "<![CDATA[.content-navigation { border-color: #3bbfce; color: #2b9eab; }]]>\n " +
60- "</css>\n " +
61- "<sass>\n " +
62- "<![CDATA[.content-navigation\n border-color: #3bbfce\n color: #2b9eab\n ]]>\n " +
63- "</sass>\n " +
64- "</page>\n "
56+ "<page>\n " +
57+ "<css>\n " +
58+ "<![CDATA[.content-navigation { border-color: #3bbfce; color: #2b9eab; }]]>\n " +
59+ "</css>\n " +
60+ "<sass>\n " +
61+ "<![CDATA[.content-navigation\n border-color: #3bbfce\n color: #2b9eab\n ]]>\n " +
62+ "</sass>\n " +
63+ "</page>\n "
6564 end
6665
6766end
You can’t perform that action at this time.
0 commit comments