Skip to content

Commit

Permalink
Merge pull request #190 from ecoologic/issues-10
Browse files Browse the repository at this point in the history
Solves issue #11
  • Loading branch information
benoittgt committed Mar 16, 2017
2 parents 3026236 + 0d8c447 commit 5857457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,10 @@ <h1><a name="data">Create only the data you need</a></h1>
<p class="spec-title spec-correct">good</p>

{% highlight ruby %}
describe "User" do
RSpec.describe User do
describe ".top" do
before { FactoryGirl.create_list(:user, 3) }
it { expect(User.top(2)).to have(2).item }
it { expect(described_class.top(2).size).to eq 2 }
end
end
{% endhighlight %}
Expand Down

0 comments on commit 5857457

Please sign in to comment.