diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-03 22:20:02 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-03 22:20:02 -0500 |
commit | 423d0e5a440d8d66407522bc842ef273196173bc (patch) | |
tree | ec2dfc14881734c4585622962235b225c653da04 /spec/views/matches | |
parent | f825d7e30ff6393b66a5abcc05a33f72d7d6712b (diff) |
run ./generate.sh
Diffstat (limited to 'spec/views/matches')
-rw-r--r-- | spec/views/matches/edit.html.erb_spec.rb | 20 | ||||
-rw-r--r-- | spec/views/matches/index.html.erb_spec.rb | 23 | ||||
-rw-r--r-- | spec/views/matches/new.html.erb_spec.rb | 20 | ||||
-rw-r--r-- | spec/views/matches/show.html.erb_spec.rb | 17 |
4 files changed, 0 insertions, 80 deletions
diff --git a/spec/views/matches/edit.html.erb_spec.rb b/spec/views/matches/edit.html.erb_spec.rb deleted file mode 100644 index fca468f..0000000 --- a/spec/views/matches/edit.html.erb_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'spec_helper' - -describe "matches/edit" do - before(:each) do - @match = assign(:match, stub_model(Match, - :tournament => nil, - :name => "MyString" - )) - 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]" - assert_select "input#match_name[name=?]", "match[name]" - end - end -end diff --git a/spec/views/matches/index.html.erb_spec.rb b/spec/views/matches/index.html.erb_spec.rb deleted file mode 100644 index d3be1b5..0000000 --- a/spec/views/matches/index.html.erb_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'spec_helper' - -describe "matches/index" do - before(:each) do - assign(:matches, [ - stub_model(Match, - :tournament => nil, - :name => "Name" - ), - stub_model(Match, - :tournament => nil, - :name => "Name" - ) - ]) - end - - it "renders a list of matches" 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 diff --git a/spec/views/matches/new.html.erb_spec.rb b/spec/views/matches/new.html.erb_spec.rb deleted file mode 100644 index 4423d2c..0000000 --- a/spec/views/matches/new.html.erb_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'spec_helper' - -describe "matches/new" do - before(:each) do - assign(:match, stub_model(Match, - :tournament => nil, - :name => "MyString" - ).as_new_record) - end - - it "renders new match form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form[action=?][method=?]", matches_path, "post" do - assert_select "input#match_tournament[name=?]", "match[tournament]" - assert_select "input#match_name[name=?]", "match[name]" - end - end -end diff --git a/spec/views/matches/show.html.erb_spec.rb b/spec/views/matches/show.html.erb_spec.rb deleted file mode 100644 index 642119d..0000000 --- a/spec/views/matches/show.html.erb_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'spec_helper' - -describe "matches/show" do - before(:each) do - @match = assign(:match, stub_model(Match, - :tournament => nil, - :name => "Name" - )) - end - - it "renders attributes in <p>" do - render - # Run the generator again with the --webrat flag if you want to use webrat matchers - rendered.should match(//) - rendered.should match(/Name/) - end -end |