diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-03-02 21:10:49 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-03-02 21:10:49 -0500 |
commit | fefe3f469243d6c932c256cc8798bae35e4ff1c4 (patch) | |
tree | 7a413b2c3bcfb0cd6842c70ae0ff962b6908172c /spec/views/matches/edit.html.erb_spec.rb | |
parent | c7469584f3fa51666d5df074d012741cbb2f3663 (diff) |
Added Tournament Name.
Diffstat (limited to 'spec/views/matches/edit.html.erb_spec.rb')
-rw-r--r-- | spec/views/matches/edit.html.erb_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/views/matches/edit.html.erb_spec.rb b/spec/views/matches/edit.html.erb_spec.rb index 0f7c673..fca468f 100644 --- a/spec/views/matches/edit.html.erb_spec.rb +++ b/spec/views/matches/edit.html.erb_spec.rb @@ -3,7 +3,8 @@ require 'spec_helper' describe "matches/edit" do before(:each) do @match = assign(:match, stub_model(Match, - :tournament => nil + :tournament => nil, + :name => "MyString" )) end @@ -13,6 +14,7 @@ describe "matches/edit" do # 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]" + assert_select "input#match_name[name=?]", "match[name]" end end end |