Sha256: d6d431315077bf685ec3761f1613e7080c8de14a017d276aac28a2cea397fcb7
Contents?: true
Size: 496 Bytes
Versions: 6
Compression:
Stored size: 496 Bytes
Contents
module ActionDispatch::Routing describe Mapper do describe "#mount_ponytail" do let(:mapper) do dummy = Class.new { def resources_path_names; end } Mapper.new(dummy.new) end it "should receive resources" do mapper.should_receive(:resources) { |*args, &block| block.call } mapper.should_receive(:collection) { |*args, &block| block.call } mapper.should_receive(:post).twice mapper.mount_ponytail end end end end
Version data entries
6 entries across 6 versions & 1 rubygems