Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Ch.5 be_true should be be_truthy #63

Open
JunichiIto opened this issue Jun 16, 2015 · 0 comments
Open

Ch.5 be_true should be be_truthy #63

JunichiIto opened this issue Jun 16, 2015 · 0 comments

Comments

@JunichiIto
Copy link

In chapter 5 Testing non-CRUD methods, the test code uses "be_true" but it should be "be_truthy" since RSpec 3.0. At least, RSpec 3.2 will fail like this:

    example do
      expect(true).to be_true
    end

  4) Sample test true should be true
     Failure/Error: expect(true).to be_true
       expected true to respond to `true?`
     # ./test_spec.rb:46:in `block (3 levels) in <top (required)>'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant