Merge pull request #29 from finnlabs/feature/rails3_rename_reporting_module

Put the reporting module for the spec query helper into the openproject ...
pull/6827/head
ulferts 12 years ago
commit 255b650600
  1. 14
      spec/support/query_helper.rb

@ -1,14 +1,12 @@
module Reporting
module QueryHelper
def minimal_query
before do
@query = CostQuery.new
@query.send(:minimal_chain!)
end
module OpenProject::Reporting::QueryHelper
def minimal_query
before do
@query = CostQuery.new
@query.send(:minimal_chain!)
end
end
end
RSpec.configure do |c|
c.extend Reporting::QueryHelper, :reporting_query_helper => true
c.extend OpenProject::Reporting::QueryHelper, :reporting_query_helper => true
end

Loading…
Cancel
Save