Skip to content

Instantly share code, notes, and snippets.

@jonathanpenn
Created November 18, 2008 20:30
Show Gist options
  • Save jonathanpenn/26257 to your computer and use it in GitHub Desktop.
Save jonathanpenn/26257 to your computer and use it in GitHub Desktop.
# This is the way it was in /lib/remarkable/rails.rb
Spec::Rails::Matchers.send(:include, Remarkable::Syntax::RSpec)
Spec::Example::ExampleGroupMethods.send(:include, Remarkable::Syntax::Shoulda)
# I believe this is the way it should be if you don't have your own remarkable specs defined
# Remarkable::Syntax::RSpec and Remarkable::Syntax::Shoulda aren't defined anywhere in the
# gem, but are in the plugin example in the tests, so I'm assuming this is what was meant
Spec::Rails::Matchers.send(:include, Remarkable::Syntax::RSpec) if defined?(Remarkable::Syntax::RSpec)
Spec::Example::ExampleGroupMethods.send(:include, Remarkable::Syntax::Shoulda) if defined?(Remarkable::Syntax::Shoulda)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment