All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gallio.RSpec.libs.rspec-1.2.7.examples.failing.predicate_example.rb Maven / Gradle / Ivy

The newest version!
require File.dirname(__FILE__) + '/spec_helper'

class BddFramework
  def intuitive?
    true
  end

  def adopted_quickly?
    #this will cause failures because it reallly SHOULD be adopted quickly
    false
  end
end

describe "BDD framework" do

  before(:each) do
    @bdd_framework = BddFramework.new
  end

  it "should be adopted quickly" do
    #this will fail because it reallly SHOULD be adopted quickly
    @bdd_framework.should be_adopted_quickly
  end

  it "should be intuitive" do
    @bdd_framework.should be_intuitive
  end

  it "should not respond to test" do
    #this will fail
    @bdd_framework.test
  end

end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy