Created
April 19, 2015 11:24
-
-
Save dars/14fc9875e01d3b4d5598 to your computer and use it in GitHub Desktop.
rspec test demo code
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
require 'rails_helper' | |
describe 'The integer should be i' do | |
i = 1 | |
it 'should be 1' do | |
expect(i).to be 1 | |
end | |
it 'should be 2' do | |
expect(i).not_to be 2 | |
end | |
j = true | |
it 'should be true' do | |
expect(j).to be true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment