fix mongodb integration tests
Didier Lafforgue
committed Apr 23, 2018
commit 3e148f57098370716c09ab795b5de0bc620f5be2
Showing 1
changed file with
10 additions
and 5 deletions
spec/integration/repositories/site_repository_spec.rb
+10
-5
| @@ | @@ -9,11 +9,6 @@ describe Locomotive::Steam::SiteRepository do |
| shared_examples_for 'a repository' do | |
| - | describe '#all' do |
| - | subject { repository.all } |
| - | it { expect(subject.size).to eq 1 } |
| - | end |
| - | |
| describe '#query' do | |
| subject { repository.query { where(handle: 'sample') }.first } | |
| it { expect(subject.name).to eq 'Sample site' } | |
| @@ | @@ -32,6 +27,11 @@ describe Locomotive::Steam::SiteRepository do |
| it_behaves_like 'a repository' | |
| + | describe '#all' do |
| + | subject { repository.all } |
| + | it { expect(subject.size).to eq 2 } |
| + | end |
| + | |
| end | |
| context 'Filesystem' do | |
| @@ | @@ -40,6 +40,11 @@ describe Locomotive::Steam::SiteRepository do |
| it_behaves_like 'a repository' | |
| + | describe '#all' do |
| + | subject { repository.all } |
| + | it { expect(subject.size).to eq 1 } |
| + | end |
| + | |
| end | |
| end | |