diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-10 15:27:11 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-10 15:27:11 +0400 |
commit | 080bd12e167dceb3274bb488b7be787379d126b4 (patch) | |
tree | a984d98fdfdd01a2ee73ebcb36f29202f1d069ff /features/support | |
parent | 7aeb92b8e4bb279346d9dcec7bbca1725cec8eb1 (diff) |
rewrite project commits features using spinach
Diffstat (limited to 'features/support')
-rw-r--r-- | features/support/env.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/features/support/env.rb b/features/support/env.rb index 2900e1cb288..38d828a2a51 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -4,12 +4,21 @@ require './config/environment' require 'rspec' require 'database_cleaner' -%w(login_helpers stubbed_repository).each do |f| +%w(gitolite_stub login_helpers stubbed_repository valid_commit).each do |f| require Rails.root.join('spec', 'support', f) end include LoginHelpers +include GitoliteStub -DatabaseCleaner.strategy = :transaction +WebMock.allow_net_connect! + +DatabaseCleaner.strategy = :truncation Spinach.hooks.before_scenario { DatabaseCleaner.start } Spinach.hooks.after_scenario { DatabaseCleaner.clean } + +Spinach.hooks.before_run do + RSpec::Mocks::setup self + + stub_gitolite! +end |