Created
April 4, 2012 08:29
-
-
Save masarakki/2299693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# foo_spec.rb | |
class Foo | |
def self.bar | |
raise | |
end | |
end | |
describe Foo do | |
subject { @foo } | |
describe :bad_failure_output do | |
before do | |
@foo = Foo.bar | |
end | |
it { should be_nil } | |
end | |
describe :good_failure_output do | |
before do | |
@foo = Foo.new | |
end | |
it { should be_nil } | |
end | |
end | |
%rspec foo_spec.rb --format doc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment