Skip to content

Instantly share code, notes, and snippets.

@andyferra
Created September 9, 2010 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyferra/571460 to your computer and use it in GitHub Desktop.
Save andyferra/571460 to your computer and use it in GitHub Desktop.
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