ruby on rails - Use rspec only in integration tests -
i have project works rails default test suite test::unit , have no reason alter tests have written. when write integration test capybara, found capybara work rspec , have problem when using capybara test::unit. decide utilize rspec in integration test.
but here problem. after running rails g rspec:install cmd rails g model create test in spec, how can utilize rspec integration test , utilize test::unit in other test.
thanks in advance.
i assume installed rspec-rails gem. gem configures rails utilize rspec testing. generator run in development, scoping rspec-rails :test group in gemfile, rails should not load gem in development.
group :test gem 'rspec-rails' end you overwrite settings set rspec-rails after gem loaded.
ruby-on-rails ruby testing rspec
No comments:
Post a Comment