spec/lib/roadie/inliner_spec.rb in roadie-1.1.1 vs spec/lib/roadie/inliner_spec.rb in roadie-1.1.2
- old
+ new
@@ -18,9 +18,19 @@
it "inlines simple attributes" do
use_css 'p { color: green }'
rendering('<p></p>').should have_styling('color' => 'green')
end
+ it "inlines browser-prefixed attributes" do
+ use_css 'p { -vendor-color: green }'
+ rendering('<p></p>').should have_styling('-vendor-color' => 'green')
+ end
+
+ it "inlines CSS3 attributes" do
+ use_css 'p { border-radius: 2px; }'
+ rendering('<p></p>').should have_styling('border-radius' => '2px')
+ end
+
it "keeps the order of the styles that are inlined" do
use_css 'h1 { padding: 2px; margin: 5px; }'
rendering('<h1></h1>').should have_styling([['padding', '2px'], ['margin', '5px']])
end