-
-
Save valikos/9d70b9770ab2bad8636506536fab08cd to your computer and use it in GitHub Desktop.
t
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
require "test_prof/recipes/rspec/let_it_be" | |
describe BeatleWeightedSearchQuery do | |
let!(:paul) { create(:beatle, name: "Paul") } | |
let!(:ringo) { create(:beatle, name: "Ringo") } | |
let!(:george) { create(:beatle, name: "George") } | |
let!(:john) { create(:beatle, name: "John") } | |
specify { expect(subject.call("john")).to contain_exactly(john) } | |
# and more examples here | |
end | |
describe BeatleWeightedSearchQuery do | |
before_all do | |
@paul = create(:beatle, name: "Paul") | |
# ... | |
end | |
specify { expect(subject.call("joh")).to contain_exactly(@john) } | |
# ... | |
end | |
describe BeatleWeightedSearchQuery do | |
let_it_be(:paul) { create(:beatle, name: "Paul") } | |
let_it_be(:ringo) { create(:beatle, name: "Ringo") } | |
let_it_be(:george) { create(:beatle, name: "George") } | |
let_it_be(:john) { create(:beatle, name: "John") } | |
specify { expect(subject.call("john")).to contain_exactly(john) } | |
# and more examples here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment