From 7eaa45fe410f0bfceec4a12c4f918e138c494179 Mon Sep 17 00:00:00 2001 From: Cesidio Di Landa Date: Sat, 20 Apr 2013 12:58:42 +0200 Subject: [PATCH] Bumped VERSION to 0.1.4 Updated CHANGELOG * Added postgresql spec configuration * Using database_cleaner gem from master branch --- CHANGELOG.md | 5 +++++ Gemfile | 2 +- Gemfile.lock | 9 +++++++-- VERSION | 2 +- spec/support/postgresql.rb | 15 +++++++++++++++ 5 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 spec/support/postgresql.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 46972d6..15b5c38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +0.1.4 +----- +* Added postgresql spec configuration +* Using database_cleaner gem from master branch + 0.1.3 ----- * Added LICENSE file diff --git a/Gemfile b/Gemfile index 0aec8c5..373a26b 100644 --- a/Gemfile +++ b/Gemfile @@ -51,7 +51,7 @@ end group :test do gem 'capybara' gem 'coveralls', require: false - gem 'database_cleaner' + gem 'database_cleaner', github: 'bmabey/database_cleaner' gem 'email_spec' gem 'launchy' gem 'rspec' diff --git a/Gemfile.lock b/Gemfile.lock index 9d13e1e..4e0d77b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,9 @@ +GIT + remote: git://github.com/bmabey/database_cleaner.git + revision: 20136e8987c222013d96e07c27d1230d2bbebd61 + specs: + database_cleaner (0.9.1) + GEM remote: https://rubygems.org/ specs: @@ -69,7 +75,6 @@ GEM thor crack (0.3.2) daemons (1.1.9) - database_cleaner (0.9.1) debug_inspector (0.0.2) debugger (1.5.0) columnize (>= 0.3.1) @@ -284,7 +289,7 @@ DEPENDENCIES capybara coffee-rails (~> 4.0.0.beta1) coveralls - database_cleaner + database_cleaner! debugger delorean email_spec diff --git a/VERSION b/VERSION index b1e80bb..845639e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.3 +0.1.4 diff --git a/spec/support/postgresql.rb b/spec/support/postgresql.rb new file mode 100644 index 0000000..d6c7c58 --- /dev/null +++ b/spec/support/postgresql.rb @@ -0,0 +1,15 @@ +RSpec.configure do |config| + + config.before(:suite) do + DatabaseCleaner.strategy = :transaction + DatabaseCleaner.clean_with(:truncation) + end + + config.before(:each) do + DatabaseCleaner.start + end + + config.after(:each) do + DatabaseCleaner.clean + end +end