diff --git a/run.rb b/run.rb index b432685..5fc715d 100644 --- a/run.rb +++ b/run.rb @@ -18,11 +18,32 @@ def it(description, &block) block.call end + def expect(obj) + ObjectWithExpectation.new(obj) + end + + def eq(val) + end + +end + +class ObjectWithExpectation + + def initialize(object) + @object = object + end + + def to(*) + end + + def not_to(*) + end + end describe "Amazing RSpeclike example" do it "works!" do - puts "hello" + expect(2+2).to eq(4) end end \ No newline at end of file