Sha256: 7ea93dcdda3ec4bf6838ef3187c716c582a5c1084f1e9892a6f966eb20292b8b

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

# Run spec w/ -fs to see the output of this file

context "specs with no names" do
  
  # spec name is auto-generated as "should equal(5)"
  specify do
    3.should equal(3)
    5.should equal(5)
  end
  
  specify { 3.should be < 5 }
  
  specify { ["a"].should include("a") }
  
  specify { [1,2,3].should respond_to(:size) }
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
riess-0.0.8 vendor/rspec-0.8.2/examples/auto_spec_name_generation_example.rb
rspec-0.8.0 examples/auto_spec_name_generation_example.rb
rspec-0.8.1 examples/auto_spec_name_generation_example.rb
rspec-0.8.2 examples/auto_spec_name_generation_example.rb