Sha256: a59eb2063e406d63d9986f1839c6d92f920bfbb367dddab2586b9338da06d85b
Contents?: true
Size: 659 Bytes
Versions: 6
Compression:
Stored size: 659 Bytes
Contents
Dir.glob("tasks/*.rake").each { |r| import r } task "test:generate_fixtures" do FileUtils.mkdir_p "tmp" FileUtils.mkdir_p "spec/fixtures" Dir.chdir "tmp" do sh "curl -L -O https://raw.githubusercontent.com/comperiosearch/booktownDemo/master/booktown.sql" end sh "dropdb booktown || true" sh "psql -f tmp/booktown.sql" sh "psql booktown -c 'alter schema public rename to booktown'" sh "pg_dump --no-owner booktown > spec/fixtures/booktown.sql" end task "test:prepare_db" do sh "createdb simple-sql-test 2>&1 > /dev/null || true" end task default: "test:prepare_db" do sh "rspec" sh "USE_ACTIVE_RECORD=1 rspec" sh "rubocop -D" end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
simple-sql-0.5.14 | Rakefile |
simple-sql-0.5.13 | Rakefile |
simple-sql-0.5.12 | Rakefile |
simple-sql-0.5.11 | Rakefile |
simple-sql-0.5.10 | Rakefile |
simple-sql-0.5.9 | Rakefile |