summaryrefslogtreecommitdiff
path: root/spec/views/matches/edit.html.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/matches/edit.html.erb_spec.rb')
-rw-r--r--spec/views/matches/edit.html.erb_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/views/matches/edit.html.erb_spec.rb b/spec/views/matches/edit.html.erb_spec.rb
new file mode 100644
index 0000000..0f7c673
--- /dev/null
+++ b/spec/views/matches/edit.html.erb_spec.rb
@@ -0,0 +1,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