require 'spec_helper' require 'bh/helpers/form_for_helper' include Bh::FormForHelper describe 'static_control' do let(:protect_against_forgery?) { false } let(:form) { form_for User.new, layout: layout, url: '/', &block } let(:block) { Proc.new {|f| f.static_control 'user@example.com', options } } let(:options) { {} } context 'given any layout' do let(:layout) { :whatever } specify 'adds a paragraph with the static control' do expect(form).to include '
Email' end end end