Sha256: b86352cad202452a55df080dc835392cd849007f98955e570d3d8083566f72df

Contents?: true

Size: 782 Bytes

Versions: 2

Compression:

Stored size: 782 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'import_everything'
#require 'spec'
#require 'spec/autorun'

RSpec.configure do |config|
  
end

include ImportEverything

def mit(name,&b)
  it(name,&b) #if name == 'parses values'
end

RSpec::Matchers.define :size do |exp_size|
  match do |arr|
    arr.size == exp_size
  end
  failure_message_for_should do |arr|
    "Array is size #{arr.size}, expected #{exp_size}, array is #{arr.inspect}"
  end
end

def pujols_value_hash
  {'first' => 'Albert', 'last' => 'Pujols', 'age' => 29}
end

def pujols_row_hash
  {:table => 'players', :values => pujols_value_hash}
end

def spec_file(f)
  File.expand_path(File.dirname(__FILE__)) + "/#{f}"
end

def mylog(*args)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
import_everything-0.1.3 spec/spec_helper.rb
import_everything-0.1.2 spec/spec_helper.rb