summaryrefslogtreecommitdiff
path: root/spec/views/matches/index.html.erb_spec.rb
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-02 21:14:48 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-02 21:14:48 -0500
commit31444c5a8cf56473a326227932dd36785c905ed1 (patch)
treed1398492d724eb4d9a32146e87596f7a0fb80622 /spec/views/matches/index.html.erb_spec.rb
parentec0ee835e8671fc5a421b7e7bcb54d4eec6deedb (diff)
parentfefe3f469243d6c932c256cc8798bae35e4ff1c4 (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'spec/views/matches/index.html.erb_spec.rb')
-rw-r--r--spec/views/matches/index.html.erb_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/views/matches/index.html.erb_spec.rb b/spec/views/matches/index.html.erb_spec.rb
index e920f16..d3be1b5 100644
--- a/spec/views/matches/index.html.erb_spec.rb
+++ b/spec/views/matches/index.html.erb_spec.rb
@@ -4,10 +4,12 @@ describe "matches/index" do
before(:each) do
assign(:matches, [
stub_model(Match,
- :tournament => nil
+ :tournament => nil,
+ :name => "Name"
),
stub_model(Match,
- :tournament => nil
+ :tournament => nil,
+ :name => "Name"
)
])
end
@@ -16,5 +18,6 @@ describe "matches/index" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => nil.to_s, :count => 2
+ assert_select "tr>td", :text => "Name".to_s, :count => 2
end
end