Skip to content

Instantly share code, notes, and snippets.

@solnic
Created July 1, 2011 10:09
Show Gist options
  • Select an option

  • Save solnic/1058222 to your computer and use it in GitHub Desktop.

Select an option

Save solnic/1058222 to your computer and use it in GitHub Desktop.
The difference between be(true) and be_true matchers
require 'rspec'
describe true do
it { should be(true) }
it { should be_true }
end
describe 'true' do
it { should_not be(true) }
it { should be_true }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment