Sha256: 30e33aba61305f1f8ac8e2f198907c4f314774ab585ca368c36508b87bbbe9a7

Contents?: true

Size: 740 Bytes

Versions: 4

Compression:

Stored size: 740 Bytes

Contents

#require 'rubygems'
#require 'bundler'
#Bundler.setup :default, :development

require 'rspec'
require 'i18n'
require 'gitter'

I18n.load_path = Dir[File.dirname(__FILE__) + '/locales/*.yml']
I18n.default_locale = :en

require 'support/database'
Dir[File.dirname(__FILE__) + '/support/*.rb'].each{|f| require f}

def check_include(*args)
  params = args.extract_options!
  scope = PersonGrid.new(:params => params).scope
  all = Set.new scope.all
  expected = Set.new [args].flatten
  #puts "SSSSSSSSSSS scope=#{scope.to_sql}"
  #puts "            all=#{all.inspect}"
  #puts "            expected=#{expected.inspect}"
  specify { all.should == expected }
end

class Array
  def detect_name( name)
    detect{|d| d.name == name }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitter-1.1.6 spec/spec_helper.rb
gitter-1.1.5 spec/spec_helper.rb
gitter-1.1.4 spec/spec_helper.rb
gitter-1.1.3 spec/spec_helper.rb