Sha256: d75f2d171fcf2f0c98f15d0caaa8f90f36f9efcffd7185cfd70a8f4198474363

Contents?: true

Size: 721 Bytes

Versions: 5

Compression:

Stored size: 721 Bytes

Contents

require "bundler/gem_tasks"
require "bundler/setup"
require 'rake/testtask'

task :default => :test

desc "Run the Test Suite, toot suite"
task :test do
  sh "ruby test/test_*"
end

desc "Open and IRB Console with the gem and test-app loaded"
task :console do
  sh "bundle exec irb  -Ilib -I . -r pg -r postgresql_cursor -r test-app/app"
  #require 'irb'
  #ARGV.clear
  #IRB.start
end

desc "Setup testing database and table"
task :setup do
  sh %q(createdb postgresql_cursor_test)
  sh %Q<echo "create table products ( id serial primary key, data varchar);" | psql postgresql_cursor_test>
  sh %Q<echo "create table prices ( id serial primary key, data varchar, product_id integer);" | psql postgresql_cursor_test>
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
postgresql_cursor-0.6.9 Rakefile
postgresql_cursor-0.6.8 Rakefile
postgresql_cursor-0.6.7 Rakefile
postgresql_cursor-0.6.6 Rakefile
postgresql_cursor-0.6.5 Rakefile