Created
May 8, 2014 16:27
-
-
Save dastels/9288bfcb65244eb7224e to your computer and use it in GitHub Desktop.
Add rspec's "expect" syntax to RubyMotion's bacon. Place in your project's spec/helpers/expect.rb
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
module Bacon | |
class Context | |
def expect(obj) | |
Bacon::Should.new(obj) | |
end | |
end | |
end | |
class Should | |
def to | |
self | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment