Sha256: 15d1429be4130babc046886ffde3fef5af5170fb70671af4bf9526731ccc2bc5
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
require 'spec_helper' describe WrapIt::TextContainer do it 'renders body' do render '<%= helper "text" %>' expect(rendered).to have_tag 'p', text: 'text' end it 'don\'t places body from options if content present' do render '<%= helper "text" do %>with content<% end %>' expect(rendered).to have_tag 'p', text: 'with content' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wrap_it-1.0.2 | spec/integration/text_container_spec.rb |
wrap_it-1.0.1 | spec/integration/text_container_spec.rb |
wrap_it-1.0.0 | spec/integration/text_container_spec.rb |