Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. require "rails_helper"
  2.  
  3. describe LongArticlesQuery do
  4. describe "#all" do
  5. subject(:all) { described_class.new.all }
  6.  
  7. before do
  8. create :article, text: "abc"
  9. create :article, text: "this is long article"
  10. end
  11.  
  12. it "returns one short comment" do
  13. expect(all.size).to eq(1)
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement