Sha256: 803c5bb3213b342b95c9fa28531355bd4b69dbf58cb2d4a1e7ea0dedc55900a3

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 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>
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postgresql_cursor-0.6.4 Rakefile