Skip to content

Instantly share code, notes, and snippets.

@dastels
Created May 8, 2014 16:27
Show Gist options
  • Save dastels/9288bfcb65244eb7224e to your computer and use it in GitHub Desktop.
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
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