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

Version Path
ponytail-0.3.0 spec/rails/mapper_spec.rb
ponytail-0.2.0 spec/rails/mapper_spec.rb
ponytail-0.1.0 spec/rails/mapper_spec.rb
ponytail-0.0.5 spec/rails/mapper_spec.rb
ponytail-0.0.4 spec/rails/mapper_spec.rb
ponytail-0.0.3 spec/rails/mapper_spec.rb