有sinatra和rspec的工厂可能吗?

时间:2022-06-08 10:59:10

I wondered if anyone had any success with using any of the facorty testing tools out there with Sinatra, Sequel and RSpec?

我想知道是否有人使用Sinatra,Sequel和RSpec的任何一个简单的测试工具取得了成功?

2 个解决方案

#1


3  

You can take a look at Rstat.us on Github. We're using Factory Girl with Sinatra. Although we are using MiniTest instead of RSpec. Maybe you can take something away from looking at it.

你可以看看Github上的Rstat.us。我们正在和Sinatra一起使用Factory Girl。虽然我们使用的是MiniTest而不是RSpec。也许你可以从看它那里拿走一些东西。

#2


0  

You mean like machinist or factory girl?

你的意思是机械师或工厂女孩?

Yes, but what are you after specifically? Not really any different to setting up data using fixtures or using helpers in your code in practice.

是的,但你具体是什么?在实践中使用夹具设置数据或在代码中使用帮助程序并没有什么不同。

#1


3  

You can take a look at Rstat.us on Github. We're using Factory Girl with Sinatra. Although we are using MiniTest instead of RSpec. Maybe you can take something away from looking at it.

你可以看看Github上的Rstat.us。我们正在和Sinatra一起使用Factory Girl。虽然我们使用的是MiniTest而不是RSpec。也许你可以从看它那里拿走一些东西。

#2


0  

You mean like machinist or factory girl?

你的意思是机械师或工厂女孩?

Yes, but what are you after specifically? Not really any different to setting up data using fixtures or using helpers in your code in practice.

是的,但你具体是什么?在实践中使用夹具设置数据或在代码中使用帮助程序并没有什么不同。