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

describe "tournaments/edit" do
  before(:each) do
    @tournament = assign(:tournament, stub_model(Tournament,
      :game => nil
    ))
  end

  it "renders the edit tournament form" do
    render

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