Created
March 2, 2012 17:27
-
-
Save biscuitvile/1959816 to your computer and use it in GitHub Desktop.
More Descriptive RSPec output for Acceptance tests
This file contains hidden or 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
require 'rspec/core/formatters/base_text_formatter' | |
module ExtraDoc | |
def example_passed(example) | |
example.description << " #{example.metadata[:extra_doc]}" | |
end | |
end | |
RSpec::Core::Formatters::BaseTextFormatter.send(:include, ExtraDoc) | |
describe "My Tests" do | |
it "Don't need to Cuke", :extra_doc => %q{ | |
Given I want output with extra sauce | |
When I write acceptance tests all the live long day | |
Then I need to a 'lil trick for when I'm working on the railroad } do | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment