changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/examples/pure/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 true
10 end
11end
12
13describe "BDD framework" do
14
15 before(:each) do
16 @bdd_framework = BddFramework.new
17 end
18
19 it "should be adopted quickly" do
20 @bdd_framework.should be_adopted_quickly
21 end
22
23 it "should be intuitive" do
24 @bdd_framework.should be_intuitive
25 end
26
27end