changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/failing_examples/predicate_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
3class BddFramework
4 def intuitive?
5 true
6 end
7
8 def adopted_quickly?
9 #this will cause failures because it reallly SHOULD be adopted quickly
10 false
11 end
12end
13
14describe "BDD framework" do
15
16 before(:each) do
17 @bdd_framework = BddFramework.new
18 end
19
20 it "should be adopted quickly" do
21 #this will fail because it reallly SHOULD be adopted quickly
22 @bdd_framework.should be_adopted_quickly
23 end
24
25 it "should be intuitive" do
26 @bdd_framework.should be_intuitive
27 end
28
29end