Skip to content

Instantly share code, notes, and snippets.

@JunichiIto
Created June 16, 2015 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JunichiIto/d062b53b20e86481756c to your computer and use it in GitHub Desktop.
Save JunichiIto/d062b53b20e86481756c to your computer and use it in GitHub Desktop.
describe 'Test true/truthy' do
context 'test 1' do
example do
expect(1).to be_truthy
end
example do
expect(1).to be true
end
example do
expect(1).to eq true
end
example do
expect(1).to be_true
end
end
context 'test true' do
example do
expect(true).to be_truthy
end
example do
expect(true).to be true
end
example do
expect(true).to eq true
end
example do
expect(true).to be_true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment