this could be replaced with

~~~ruby
view.should have_css 'input#post_title[name="post[title]"]'
~~~

which would be more RSpec, this syntax you are using is the default Rails minitest syntax