This spec has 4 stubs and an expectation that is extremely specific. With that level of complexity I'd rather see a spec against a smaller part of the code. If write option construction is pushed into a separate method it would be best to simply test against that method, which should require almost no stubbing at all.