Sha256: 349676ed00195d08b371d66450b9147d4813b6662e7f751880a498c6a6029e29
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 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(:get).twice mapper.mount_ponytail end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ponytail-0.4.0 | spec/rails/mapper_spec.rb |