Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix css test

  • Loading branch information...
commit 2956a81f2b716a1948ed8558eedc510773cbede5 1 parent a871c99
@eudoxa eudoxa authored
Showing with 7 additions and 7 deletions.
  1. +1 −1  spec/integration/chanko_spec.rb
  2. +6 −6 spec/lib/callback_spec.rb
View
2  spec/integration/chanko_spec.rb
@@ -37,7 +37,7 @@
it 'invoke with view' do
visit "/invoke/with_view"
(response || page).body.should match(/render view file/)
- (response || page).body.should match(/unit unit_acceptance_test unit_acceptance_test-render/)
+ (response || page).body.should match(/unit unit__acceptance_test unit__acceptance_test__render/)
end
it 'invoke by unit_action' do
View
12 spec/lib/callback_spec.rb
@@ -59,20 +59,20 @@
end
it 'should render as inline' do
- expect = '<span class="unit unit_render_test unit_render_test-render">hello</span>'
+ expect = '<span class="unit unit__render_test unit__render_test__render">hello</span>'
function.invoke!(view, :type => :inline).should == expect
view.output_buffer.should == ''
end
it 'should render as block' do
- expect = '<div class="unit unit_render_test unit_render_test-render">hello</div>'
+ expect = '<div class="unit unit__render_test unit__render_test__render">hello</div>'
function.invoke!(view, :type => :block).should == expect
view.output_buffer.should == ''
end
it 'should render as default' do
Chanko.config.default_view_type = :block
- expect = '<div class="unit unit_render_test unit_render_test-render">hello</div>'
+ expect = '<div class="unit unit__render_test unit__render_test__render">hello</div>'
function.invoke!(view).should == expect
Chanko.config.default_view_type = :plain
expect = 'hello'
@@ -80,13 +80,13 @@
end
it 'should return as string if block is not given' do
- expect = '<div class="unit unit_render_test unit_render_test-render">hello</div>'
+ expect = '<div class="unit unit__render_test unit__render_test__render">hello</div>'
function.invoke!(view).should == expect
view.output_buffer.should == ''
end
it 'should return as string if block is given' do
- expect = '<div class="unit unit_render_test unit_render_test-render">hello</div>'
+ expect = '<div class="unit unit__render_test unit__render_test__render">hello</div>'
function.invoke!(view) {}.should == expect
view.output_buffer.should == ''
end
@@ -105,7 +105,7 @@
end
it 'should escape' do
- default_function.invoke!(view, :capture => true).should == '<div class="unit unit_ unit_-__default__">' + ERB::Util.html_escape('<div>hoge</div>') + '</div>'
+ default_function.invoke!(view, :capture => true).should == '<div class="unit unit__ unit______default__">' + ERB::Util.html_escape('<div>hoge</div>') + '</div>'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.