Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / failing_examples / predicate_example.rb
blobdf54d73378b4b04f3ec578382716d903f45f2c32
1 require File.dirname(__FILE__) + '/spec_helper'
3 class 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
12 end
14 describe "BDD framework" do
16   before(:each) do
17     @bdd_framework = BddFramework.new
18   end
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
29 end