spec/rails/button_to_helper.rb in bh-1.3.4 vs spec/rails/button_to_helper.rb in bh-1.3.5

- old
+ new

@@ -7,10 +7,10 @@ #-- shared_examples_for 'no button_to options (Rails)' do specify 'uses the original button_to helper' do - html = %r{^<form action="/" class="button_to" method="post"><div><(input|button) type="submit"(>| value=")content(" />|</button>)</div></form>$} + html = %r{^<form(?:| action="/") class="button_to" method="post"(?:| action="/")>(?:|<div>)<(input|button) type="submit"(>| value=")content(" />|</button>)(?:|</div>)</form>$} expect(:button_to).to generate html end end shared_examples_for 'only extra button_to options (Rails)' do