~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to vendor/gems/rspec/failing_examples/predicate_example.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require File.dirname(__FILE__) + '/spec_helper'
 
2
 
 
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
 
13
 
 
14
describe "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
 
 
29
end