Permalink
Browse files

stubs for sharding specs

test plan: n/a

Change-Id: I4ae3f7cff199e1afe8daf58877e6d6edfe03ddcd
Reviewed-on: https://gerrit.instructure.com/8057
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
  • Loading branch information...
1 parent 179a10f commit d102d750f48751e1876bf46ff7d01958b46a6a5b @ccutrer ccutrer committed Jan 13, 2012
Showing with 31 additions and 0 deletions.
  1. +8 −0 lib/stubs/shard.rb
  2. +23 −0 spec/sharding_spec_helper.rb
View
@@ -40,6 +40,14 @@ def activate
def default?
true
end
+
+ module RSpec
+ def self.included(klass)
+ klass.before do
+ pending "needs a sharding implementation"
+ end
+ end
+ end
end
ActiveRecord::Base.class_eval do
@@ -0,0 +1,23 @@
+#
+# Copyright (C) 2011 Instructure, Inc.
+#
+# This file is part of Canvas.
+#
+# Canvas is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, version 3 of the License.
+#
+# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+
+shared_examples_for "sharding" do
+ include Shard::RSpec
+end

0 comments on commit d102d75

Please sign in to comment.