summaryrefslogtreecommitdiff
path: root/spec/views/matches/edit.html.erb_spec.rb
blob: 0f7c673008427d3a6a4133c13d97cdc3f19c5480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe "matches/edit" do
  before(:each) do
    @match = assign(:match, stub_model(Match,
      :tournament => nil
    ))
  end

  it "renders the edit match form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form[action=?][method=?]", match_path(@match), "post" do
      assert_select "input#match_tournament[name=?]", "match[tournament]"
    end
  end
end