Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rails_helper"
- describe LongArticlesQuery do
- describe "#all" do
- subject(:all) { described_class.new.all }
- before do
- create :article, text: "abc"
- create :article, text: "this is long article"
- end
- it "returns one short comment" do
- expect(all.size).to eq(1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement