Skip to content

Commit

Permalink
spec: re-fix base_transactions for onceler
Browse files Browse the repository at this point in the history
Change-Id: I22ea36859637e6081d79b5c3f1ec064a778635ca
Reviewed-on: https://gerrit.instructure.com/38028
Tested-by: Jenkins <[email protected]>
Reviewed-by: Cody Cutrer <[email protected]>
Product-Review: James Williams  <[email protected]>
QA-Review: James Williams  <[email protected]>
  • Loading branch information
maneframe committed Jul 23, 2014
1 parent 79f45f5 commit 6cd2908
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,12 @@ def message(opts={})
if CANVAS_RAILS2
require 'spec/support/onceler/noop'
config.include Onceler::Noop

Onceler.instance_eval do
def self.base_transactions
1
end
end
else
config.include Onceler::BasicHelpers

Expand Down
6 changes: 0 additions & 6 deletions spec/support/onceler/noop.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# dummy methods for CANVAS_RAILS2
module Onceler
unless self.method_defined?(:base_transactions)
def self.base_transactions
1
end
end

module Noop
def self.included(mod)
mod.extend(ClassMethods)
Expand Down

0 comments on commit 6cd2908

Please sign in to comment.