Sha256: 77f036d410f12a87a64654df5b6561ceba88af53f45320b03c4d7150e5078fec
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
RSpec.describe Aldous::Respondable::SendData::SendDataAction do subject(:respondable) {described_class.new(data, options, controller, result)} let(:data) { 'hello' } let(:options) {'world'} let(:controller) {double 'controller', render: nil} let(:result) {"blah"} describe "#execute" do it "calls render on controller with the relevant options" do expect(controller).to receive(:send_data).with(data, options) respondable.execute end end end
Version data entries
4 entries across 4 versions & 1 rubygems