From c3940969c9fc29db8206c1dbf6a1d6c282ad15af Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Tue, 11 Dec 2012 00:49:29 +0000 Subject: [PATCH] Remove "pending" tests Most we deleted, because we couldn't think of any interesting tests to write. We added a test for the garden_slug method of Garden. --- spec/helpers/crops_helper_spec.rb | 15 --------------- spec/helpers/gardens_helper_spec.rb | 15 --------------- spec/helpers/scientific_names_helper_spec.rb | 15 --------------- spec/helpers/updates_helper_spec.rb | 15 --------------- spec/models/garden_spec.rb | 8 +++++++- spec/models/scientific_name_spec.rb | 5 ----- 6 files changed, 7 insertions(+), 66 deletions(-) delete mode 100644 spec/helpers/crops_helper_spec.rb delete mode 100644 spec/helpers/gardens_helper_spec.rb delete mode 100644 spec/helpers/scientific_names_helper_spec.rb delete mode 100644 spec/helpers/updates_helper_spec.rb delete mode 100644 spec/models/scientific_name_spec.rb diff --git a/spec/helpers/crops_helper_spec.rb b/spec/helpers/crops_helper_spec.rb deleted file mode 100644 index 23f2f2970..000000000 --- a/spec/helpers/crops_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the CropsHelper. For example: -# -# describe CropsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe CropsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/gardens_helper_spec.rb b/spec/helpers/gardens_helper_spec.rb deleted file mode 100644 index d3a34f8dd..000000000 --- a/spec/helpers/gardens_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the GardensHelper. For example: -# -# describe GardensHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe GardensHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/scientific_names_helper_spec.rb b/spec/helpers/scientific_names_helper_spec.rb deleted file mode 100644 index 3e4d39c6a..000000000 --- a/spec/helpers/scientific_names_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the ScientificNamesHelper. For example: -# -# describe ScientificNamesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe ScientificNamesHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/updates_helper_spec.rb b/spec/helpers/updates_helper_spec.rb deleted file mode 100644 index f16c9a767..000000000 --- a/spec/helpers/updates_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the UpdatesHelper. For example: -# -# describe UpdatesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe UpdatesHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/models/garden_spec.rb b/spec/models/garden_spec.rb index e2dc2d833..4290cedfb 100644 --- a/spec/models/garden_spec.rb +++ b/spec/models/garden_spec.rb @@ -1,5 +1,11 @@ require 'spec_helper' describe Garden do - pending "add some examples to (or delete) #{__FILE__}" + it "should have a slug" do + user = mock_model(User) + user.stub!(:username).and_return("test1") + garden = Garden.new(:name => "my garden") + garden.user = user + garden.garden_slug.should == "test1-my garden" + end end diff --git a/spec/models/scientific_name_spec.rb b/spec/models/scientific_name_spec.rb deleted file mode 100644 index 18ace8327..000000000 --- a/spec/models/scientific_name_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe ScientificName do - pending "add some examples to (or delete) #{__FILE__}" -end