added RSpec and RSpec on Rails
This commit is contained in:
parent
ddd5b4cf19
commit
3f607d565b
316 changed files with 23828 additions and 0 deletions
8
vendor/gems/rspec-1.1.2/examples/pure/io_processor.rb
vendored
Normal file
8
vendor/gems/rspec-1.1.2/examples/pure/io_processor.rb
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
class DataTooShort < StandardError; end
|
||||
|
||||
class IoProcessor
|
||||
# Does some fancy stuff unless the length of +io+ is shorter than 32
|
||||
def process(io)
|
||||
raise DataTooShort if io.read.length < 32
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue