changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1require File.dirname(__FILE__) + '/spec_helper'
2
3# Run spec w/ -fs to see the output of this file
4
5describe "Failing examples with no descriptions" do
6
7 # description is auto-generated as "should equal(5)" based on the last #should
8 it do
9 3.should equal(2)
10 5.should equal(5)
11 end
12
13 it { 3.should be > 5 }
14
15 it { ["a"].should include("b") }
16
17 it { [1,2,3].should_not respond_to(:size) }
18
19end