diff --git a/.travis.yml b/.travis.yml index 4855cee..b80e632 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ rvm: before_install: - gem install bundler - - sudo apt-get install postgresql + #- sudo service postgresql stop + - ls /usr/lib/postgresql/9.1/bin + #- sudo apt-get install postgresql + -script: bundle exec rspec +script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; bundle exec rspec diff --git a/spec/pg_tester_spec.rb b/spec/pg_tester_spec.rb index 389dcfb..8f313b7 100644 --- a/spec/pg_tester_spec.rb +++ b/spec/pg_tester_spec.rb @@ -135,6 +135,7 @@ context 'initialize the database' do subject { described_class.new } it 'should have the postgresql.conf inside the data directory' do + subject.create_data_dir subject.initdb expect(File.exists?("#{subject.data_dir}/postgresql.conf")).to eq(true) end @@ -143,7 +144,9 @@ context 'run the database via pgctl' do subject { described_class.new } it 'should have the postmaster.pid inside the data directory' do - subject.rundb + subject.create_data_dir + subject.initdb + puts "IM RUNNING #{subject.rundb}" expect(File.exists?("#{subject.data_dir}/postmaster.pid")).to eq(true) end