From 9a9eeecb46b8c2e3fba4ff7d33ce05674eee2ce8 Mon Sep 17 00:00:00 2001 From: Skud Date: Thu, 2 Oct 2014 10:09:21 +1000 Subject: [PATCH] Removing tests for migrations These were never run anyway (they don't have _spec.rb in their names) and were obviously written when we had no idea what we were doing. They're full of syntax errors and all sorts of stuff that just won't work. The best thing is to remove them so they don't confuse people! --- spec/migrations/give_each_user_a_garden.spec | 12 ------------ spec/migrations/set_up_test_users.spec | 10 ---------- 2 files changed, 22 deletions(-) delete mode 100644 spec/migrations/give_each_user_a_garden.spec delete mode 100644 spec/migrations/set_up_test_users.spec diff --git a/spec/migrations/give_each_user_a_garden.spec b/spec/migrations/give_each_user_a_garden.spec deleted file mode 100644 index 1c6972e54..000000000 --- a/spec/migrations/give_each_user_a_garden.spec +++ /dev/null @@ -1,12 +0,0 @@ -require 'spec_helper' - -describe 'new gardens' do - it "should have 'my garden' for each user" do - (1..3).each do |i| - @user = User.find_by_username("test#{i}") - @garden = Garden.find(:name => "My Garden", :user_id => @user.id) - @garden.should_exist - @garden.slug.should == "test#{i}-my-garden" - end - end -end diff --git a/spec/migrations/set_up_test_users.spec b/spec/migrations/set_up_test_users.spec deleted file mode 100644 index d1f69d3f6..000000000 --- a/spec/migrations/set_up_test_users.spec +++ /dev/null @@ -1,10 +0,0 @@ -require 'spec_helper' - -describe 'test users' do - it 'should have 3 test users' do - (1..3).each do |i| - @user = User.find_by_username("test#{i}") - @user.email.should == "test#{i}@example.com" - end - end -end