Sha256: e0f8bcc0d7931a65b81656053bcc25d3eee738517df6fcd93bda6e6ee150f36d

Contents?: true

Size: 613 Bytes

Versions: 5

Compression:

Stored size: 613 Bytes

Contents

require 'test/unit'
require 'rubygems'
require 'shoulda'

require File.join(File.dirname(__FILE__), '..', 'lib','restful_query.rb')


unless defined?(ActiveRecord)
  module ActiveRecord
    class Base
      class << self
        attr_accessor :pluralize_table_names

        def protected_attributes
          []
        end
        
        def named_scope(name, options = {})
        end
      end
      self.pluralize_table_names = true
      
      include RestfulQuery::CanQuery
    end
  end
end

class ClassWithQuery < ActiveRecord::Base
  can_query
end

class ClassWithoutQuery < ActiveRecord::Base
  
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
quirkey-restful_query-0.2.0 test/test_helper.rb
quirkey-restful_query-0.3.0 test/test_helper.rb
restful_query-0.3.1 test/test_helper.rb
restful_query-0.3.0 test/test_helper.rb
restful_query-0.2.0 test/test_helper.rb