文件名称:activejob_spec:RSpec匹配ActiveJob
文件大小:9KB
文件格式:ZIP
更新时间:2024-06-03 17:02:30
Ruby
ActiveJobSpec ActiveSpec for RSpec的测试倍数。 安装 将此行添加到您的应用程序的Gemfile中: group :development , :test do gem 'activejob_spec' end 然后执行 $ bundle 用法 在这种情况下 Given a payment When I process Then the payment has process queued 我使用activejob_spec匹配器编写此规范 describe '#process' do before do ActiveJobSpec . reset! end it 'adds payment.process to the Payment queue' do payment . process ex
【文件预览】:
activejob_spec-master
----.gitignore(87B)
----activejob_spec.gemspec(1KB)
----.rspec(31B)
----.travis.yml(76B)
----CODE_OF_CONDUCT.md(1KB)
----LICENSE.txt(1KB)
----spec()
--------spec_helper.rb(236B)
--------activejob_spec()
--------activejob_spec_spec.rb(668B)
----README.md(3KB)
----lib()
--------activejob_spec()
--------activejob_spec.rb(224B)
----Gemfile(99B)
----Rakefile(117B)