Skip to content

Commit

Permalink
stubs for sharding specs
Browse files Browse the repository at this point in the history
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
ccutrer committed Jan 16, 2012
1 parent 179a10f commit d102d75
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/stubs/shard.rb
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions spec/sharding_spec_helper.rb
@@ -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.