我无法围绕这个测试问题缠住我的头。 我写了测试库测试其在内存中执行,如: class RepositoryTest extends TestCase {
function setUp() {
// set implementation in the container
container()->set(Repository::class, InMemoryRep
我需要测试传入的参数类型是一个整数。这里是我的测试规范: require 'ball_spin'
RSpec.describe BallSpin do
describe '#create_ball_spin' do
subject(:ball_spin) { BallSpin.new }
it 'should accept an integer argument'