Last active
June 19, 2016 23:13
-
-
Save ClayShentrup/c82cb76fe236a372bd9e7b7466c750b9 to your computer and use it in GitHub Desktop.
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
expected collection contained: [#<User id: 1, email: "[email protected]", ...a bunch of attributes...>] | |
actual collection contained: [#<User id: 1, email: "[email protected]", ...a bunch of attributes...>, | |
#<User id: 2, email: "[email protected]", ...a bunch of attributes...>] |
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(User) do | |
describe('.old_enough_to_drink') do | |
let!(:bob) { create(:user, age: 21) } | |
let!(:alice) { create(:user, age: 20) } | |
specify do | |
expect(described_class.old_enough_to_drink).to eq([bob]) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment