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

Version Path
aldous-1.1.3 spec/aldous/respondable/send_data/send_data_action_spec.rb
aldous-1.1.2 spec/aldous/respondable/send_data/send_data_action_spec.rb
aldous-1.0.1 spec/aldous/respondable/send_data/send_data_action_spec.rb
aldous-1.0.0 spec/aldous/respondable/send_data/send_data_action_spec.rb