Created
September 9, 2010 06:03
-
-
Save andyferra/571460 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
RSpec.configure do |config| | |
config.before_tag :javascript do | |
setup_javascript_shit! | |
end | |
config.after_tag :javascript do | |
teardown_javascript_shit! | |
end | |
config.before_tag :important do | |
# this runs at the beginning of any example tagged with before | |
end | |
end | |
tag :important | |
describe Foo do | |
before do | |
end | |
before_tag :foo do | |
end | |
tag.important do | |
end | |
important do | |
end | |
tag :important | |
it 'should do something', :important do | |
# ... | |
end | |
tag :billing, :javascript | |
it 'should do something else', :billing, :javascript do | |
# ... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment