Created
November 18, 2008 20:30
-
-
Save jonathanpenn/26257 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
# 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