Commit 2d1896ab
Changed files (3)
spec
spec/helpers/tutorials_helper_spec.rb
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the TutorialsHelper. For example:
-#
-# describe TutorialsHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe TutorialsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
spec/models/tutorial_spec.rb
@@ -1,5 +1,4 @@
require 'spec_helper'
describe Tutorial do
- pending "add some examples to (or delete) #{__FILE__}"
end
spec/views/tutorials/index.html.erb_spec.rb
@@ -19,8 +19,7 @@ describe "tutorials/index" do
it "renders a list of tutorials" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => "Heading".to_s, :count => 2
- assert_select "tr>td", :text => "MyText".to_s, :count => 2
- assert_select "tr>td", :text => "Url".to_s, :count => 2
+ assert_select "h3", :text => "Heading".to_s, :count => 2
+ assert_select "p", :text => "MyText".to_s, :count => 2
end
end