Sha256: 2d1b9d30a78529f64a1ad85dcc66d9056d785313b28289ff1a22db8b6879ae6e
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
require 'spec_helper' =begin class UsersHelperTest < ActionView::TestCase it 'includes framework-specific methods' do methods = successor_class.protected_instance_methods(true) expect(methods).to include :concat, :capture, :output_buffer end it 'renders base as div' do render '<%= successor %>' expect(rendered).to have_tag 'div', count: 1 end it 'captures block content' do render '<%= successor do %>Some text<% end %>' expect(rendered).to have_tag 'div', count: 1, text: /Some text/ end end =end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wrap_it-0.1.1 | spec/rails/base_spec.rb |
wrap_it-0.1.0 | spec/rails/base_spec.rb |