Below is an example of a RSpec 2 View test looks like in a html.erb_spec.rb file:

it “renders the edit framework form” do
    render


    assert_select “form”, :action => frameworks_path(@framework), :method => “post” do
        assert_select “input#framework_title”, :name => “framework[title]”
    end
  end
end