Created
December 5, 2013 19:52
-
-
Save anonymous/7812699 to your computer and use it in GitHub Desktop.
How many of these tests pass?
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
describe "rspec" do | |
context "using .each" do | |
[1,2].each do |x| | |
let(:y) { x } | |
specify "#{x} == #{x}" do | |
y.should == x | |
end | |
end | |
end | |
a = 1 | |
let(:b) { a } | |
specify "#{a} == #{a}" do | |
b.should == a | |
end | |
a = 2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment