Sha256: f9d3bc3f70fb56d3ece7207384cd4f776307c74e8cb045203aef132a2322a23a
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require 'spec_helper' describe G5Updatable::FeedController, type: :controller do routes { G5Updatable::Engine.routes } context "#update" do let(:params) { {foo: "bar"} } let(:processor) { double(:processor) } subject do post :update, params end before do expect(G5Updatable::ClientFeedProcessor).to receive(:new).with(hash_including(params)).and_return processor expect(processor).to receive :work end it { should be_successful } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-0.20.3.pre.1 | spec/controllers/feed_controller_spec.rb |