简体   繁体   English

使用rspec 1,rails 2.3,ruby 1.8.7编写集成测试的工具

[英]Tools to write Integration tests with rspec 1, rails 2.3, ruby 1.8.7

I've an application running with this setup: 我有一个使用此设置运行的应用程序:

  • Ruby 1.8.7 Ruby 1.8.7
  • Rails 2.3.18 Rails 2.3.18
  • Rspec 1.3.0 Rspec 1.3.0

I want to write some integration tests and wanted to use capybara , unfortunally as far as I've researched it is not compatible with that setup. 我想写一些集成测试并想使用capybara ,不幸的是,据我研究,它与该设置不兼容。 The latest capybara version compatible with rails 2 is 1.1.4 but it requires rubyzip that requires ruby 1.9 . rails 2兼容的最新capybara版本是1.1.4但是它需要rubyzipruby 1.9 I tried installing rubyzip 0.9.9 that is compatible with ruby 1.8 , but seems like that version of capybara is not compatible with it. 我尝试安装与ruby 1.8兼容的rubyzip 0.9.9 ,但似乎该版本的水豚与此不兼容。 So I dont know if it worth to try with an even older capybara version, or if is better to use other tool like webrat . 因此,我不知道是否值得尝试使用甚至更老的水豚版本,或者是否最好使用webrat类的其他工具。

What alternatives do I have to write integration tests on this setup? 我必须在该设置上编写集成测试什么替代方法? What would be your choice? 您会选择什么?

我建议去那时候使用Cucumber和Webrat,IIRC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 哪个版本的capybara与Rails 2.3和Ruby 1.8.7兼容? - What version of capybara is compatible with Rails 2.3 and Ruby 1.8.7? Ruby 1.8.7中的Rspec错误 - Rspec errors in Ruby 1.8.7 Ruby 1.8.7上的Rspec失败 - Rspec Failures on Ruby 1.8.7 Rails/RSpec - 如何为处理程序编写 rspec 测试? - Rails/RSpec - How to write rspec tests for handlers? RVM:使用Ruby 1.8.7,测试和Rails的启动非常非常缓慢 - RVM: Tests and Rails start very, very slowly using Ruby 1.8.7 rspec如何与Rails 3一起进行集成测试? - How does rspec work with Rails 3 for integration tests? 使用 rspec 和请求进行 Rails/Rspec 集成测试 - 第二次测试的路由不匹配 - Rails/Rspec integration tests with rspec and requests - route not matches for second test Windows 7(64位)+ Ruby 1.8.7 + Rails 2.3.x中的Netbeans / Aptana / RubyMine调试器不起作用 - Netbeans/Aptana/RubyMine debugger in Windows 7 (64bit) + Ruby 1.8.7 + Rails 2.3.x does not work Rails 2.3 + Ruby 1.8.7不兼容的字符编码:UTF-8和ASCII-8BIT - Rails 2.3 + Ruby 1.8.7 incompatible character encodings: UTF-8 and ASCII-8BIT 有谁能够在OSX特立独行的RVM上获得ruby 1.8.7和rails 2.3.x? - has anyone been able to get ruby 1.8.7 , rails 2.3.x working on rvm on osx mavericks?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM