aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rspec-1.3.1/lib/spec/example.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-06-20 10:46:57 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-06-20 10:46:57 +0100
commit6c4c822ef7a4491bf821326af779e5be9118c0a1 (patch)
tree39cf3564b1b2fb6be26499eda2a41be7ba59ad65 /vendor/gems/rspec-1.3.1/lib/spec/example.rb
parentea977a0b9e86bc99a84de8577fa4ce1d304ac489 (diff)
parent08dac0261325cd757b7146f9626f3c7b48cc672c (diff)
Merge branch 'release/0.6'0.6
Conflicts: locale/bs/app.po locale/ca/app.po locale/cs/app.po locale/cy/app.po locale/de/app.po locale/en_IE/app.po locale/es/app.po locale/eu/app.po locale/fr/app.po locale/ga_IE/app.po locale/gl/app.po locale/hu_HU/app.po locale/id/app.po locale/pt_BR/app.po locale/sq/app.po locale/sr@latin/app.po spec/fixtures/locale/en/app.po
Diffstat (limited to 'vendor/gems/rspec-1.3.1/lib/spec/example.rb')
-rw-r--r--vendor/gems/rspec-1.3.1/lib/spec/example.rb164
1 files changed, 0 insertions, 164 deletions
diff --git a/vendor/gems/rspec-1.3.1/lib/spec/example.rb b/vendor/gems/rspec-1.3.1/lib/spec/example.rb
deleted file mode 100644
index afbf41286..000000000
--- a/vendor/gems/rspec-1.3.1/lib/spec/example.rb
+++ /dev/null
@@ -1,164 +0,0 @@
-module Spec
- # == Example Groups and Code Examples
- #
- # A Code Example is an executable example of how a bit of code is expected
- # to behave.
- #
- # An Example Group is a group of code examples.
- #
- # RSpec exposes a DSL to describe groups of examples.
- #
- # describe Account do
- # it "should have a balance of $0" do
- # account = Account.new
- # account.balance.should == Money.new(0, :dollars)
- # end
- # end
- #
- # == Before and After
- #
- # You can use the <tt>before()</tt> and <tt>after()</tt> methods to extract
- # common code within an Example Group. Both methods take an optional scope
- # argument so you can run the block before :each example or before :all
- # examples
- #
- # describe "..." do
- # before :all do
- # ...
- # end
- #
- # before :each do
- # ...
- # end
- #
- # it "should do something" do
- # ...
- # end
- #
- # it "should do something else" do
- # ...
- # end
- #
- # after :each do
- # ...
- # end
- #
- # after :all do
- # ...
- # end
- #
- # end
- #
- # The <tt>before :each</tt> block will run before each of the examples, once
- # for each example. Likewise, the <tt>after :each</tt> block will run after
- # each of the examples.
- #
- # It is also possible to specify a <tt>before :all</tt> and <tt>after
- # :all</tt> block that will run only once for each example group, before the
- # first <code>before :each</code> and after the last <code>after
- # :each</code> respectively. The use of these is generally discouraged,
- # because it introduces dependencies between the examples. Still, it might
- # prove useful for very expensive operations if you know what you are doing.
- #
- # == Local helper methods
- #
- # You can include local helper methods by simply expressing them within an
- # example group:
- #
- # describe "..." do
- #
- # it "..." do
- # helper_method
- # end
- #
- # def helper_method
- # ...
- # end
- #
- # end
- #
- # == Included helper methods
- #
- # You can include helper methods in multiple example groups by expressing
- # them within a module, and then including that module in your example
- # groups:
- #
- # module AccountExampleHelperMethods
- # def helper_method
- # ...
- # end
- # end
- #
- # describe "A new account" do
- # include AccountExampleHelperMethods
- # before do
- # @account = Account.new
- # end
- #
- # it "should have a balance of $0" do
- # helper_method
- # @account.balance.should eql(Money.new(0, :dollars))
- # end
- # end
- #
- # == Shared Example Groups
- #
- # You can define a shared example group, that may be used on other groups
- #
- # share_examples_for "All Editions" do
- # it "all editions behaviour" ...
- # end
- #
- # describe SmallEdition do
- # it_should_behave_like "All Editions"
- #
- # it "should do small edition stuff" do
- # ...
- # end
- # end
- #
- # You can also assign the shared group to a module and include that
- #
- # share_as :AllEditions do
- # it "should do all editions stuff" ...
- # end
- #
- # describe SmallEdition do
- # it_should_behave_like AllEditions
- #
- # it "should do small edition stuff" do
- # ...
- # end
- # end
- #
- # And, for those of you who prefer to use something more like Ruby, you can
- # just include the module directly
- #
- # describe SmallEdition do
- # include AllEditions
- #
- # it "should do small edition stuff" do
- # ...
- # end
- # end
- module Example
- end
-end
-
-require 'timeout'
-require 'spec/example/args_and_options'
-require 'spec/example/predicate_matchers'
-require 'spec/example/example_group_proxy'
-require 'spec/example/example_proxy'
-require 'spec/example/subject'
-require 'spec/example/before_and_after_hooks'
-require 'spec/example/pending'
-require 'spec/example/module_reopening_fix'
-require 'spec/example/example_group_hierarchy'
-require 'spec/example/example_group_methods'
-require 'spec/example/example_methods'
-require 'spec/example/example_group'
-require 'spec/example/shared_example_group'
-require 'spec/example/example_group_factory'
-require 'spec/example/errors'
-require 'spec/example/example_matcher'