Skip to content

Commit

Permalink
next program assumptions, like expect, to, eq
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobAlexander committed Sep 28, 2016
1 parent a92e537 commit 1060e7a
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1060e7a

Please sign in to comment.