Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / rspec / failing_examples / predicate_example.rb
blob53b6367e2d35c8756c414de0b89ac4c804eb44de
1 require File.dirname(__FILE__) + '/spec_helper'
3 class BddFramework
4   def intuitive?
5     true
6   end
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
25   it "should be intuitive" do
26     @bdd_framework.should be_intuitive
27   end
29 end