Sha256: d727020b43f05a4bb808ddd15a313b6681fcf695cae52e5cf08dd89948e2eb0d

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

RSpec.describe Aldous::Respondable::Headable::HeadAction do
  subject(:respondable) {described_class.new(controller, status)}

  let(:controller) {double 'controller'}
  let(:status) {'hello'}

  before do
    allow(controller).to receive(:head).with(status)
  end

  describe "#execute" do
    it "calls head on controller with status" do
      expect(controller).to receive(:head).with(status)
      respondable.execute
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aldous-1.1.3 spec/aldous/respondable/headable/head_action_spec.rb
aldous-1.1.2 spec/aldous/respondable/headable/head_action_spec.rb
aldous-1.0.1 spec/aldous/respondable/headable/head_action_spec.rb
aldous-1.0.0 spec/aldous/respondable/headable/head_action_spec.rb