]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/pure/file_accessor_spec.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / examples / pure / file_accessor_spec.rb
diff --git a/vendor/gems/rspec-1.1.2/examples/pure/file_accessor_spec.rb b/vendor/gems/rspec-1.1.2/examples/pure/file_accessor_spec.rb
deleted file mode 100644 (file)
index 628d4c0..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + '/file_accessor'
-require 'stringio'
-
-describe "A FileAccessor" do
-  # This sequence diagram illustrates what this spec specifies.
-  #
-  #                  +--------------+     +----------+     +-------------+
-  #                  | FileAccessor |     | Pathname |     | IoProcessor |
-  #                  +--------------+     +----------+     +-------------+
-  #                         |                  |                  |
-  #   open_and_handle_with  |                  |                  |
-  #   -------------------->| |           open  |                  |
-  #                        | |--------------->| |                 |
-  #                        | | io             | |                 |
-  #                        | |<...............| |                 |
-  #                        | |                 |     process(io)  |
-  #                        | |---------------------------------->| |
-  #                        | |                 |                 | |
-  #                        | |<..................................| |
-  #                         |                  |                  |
-  #
-  it "should open a file and pass it to the processor's process method" do
-    # This is the primary actor
-    accessor = FileAccessor.new
-
-    # These are the primary actor's neighbours, which we mock.
-    file = mock "Pathname"
-    io_processor = mock "IoProcessor"
-    
-    io = StringIO.new "whatever"
-    file.should_receive(:open).and_yield io
-    io_processor.should_receive(:process).with(io)
-    
-    accessor.open_and_handle_with(file, io_processor)
-  end
-
-end