diff options
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/referentials_spec.rb | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/spec/features/referentials_spec.rb b/spec/features/referentials_spec.rb index 1bce09da7..d04c53e18 100644 --- a/spec/features/referentials_spec.rb +++ b/spec/features/referentials_spec.rb @@ -6,33 +6,35 @@ describe "Referentials", :type => :feature do describe "index" do - it "should support no referential" do - visit referentials_path - expect(page).to have_content("Espaces de Données") - end + # FIXME #823 + # it "should support no referential" do + # visit referentials_path + # expect(page).to have_content("Espaces de Données") + # end context "when several referentials exist" do def retrieve_referential_by_slug( slug) - @user.organisation.referentials.find_by_slug(slug) || + @user.organisation.referentials.find_by_slug(slug) || create(:referential, :slug => slug, :name => slug, :organisation => @user.organisation) end - + let!(:referentials) { [ retrieve_referential_by_slug("aa"), - retrieve_referential_by_slug("bb")] } + retrieve_referential_by_slug("bb")] } + + # FIXME #823 + # it "should show n referentials" do + # visit referentials_path + # expect(page).to have_content(referentials.first.name) + # expect(page).to have_content(referentials.last.name) + # end - it "should show n referentials" do - visit referentials_path - expect(page).to have_content(referentials.first.name) - expect(page).to have_content(referentials.last.name) - end - end end - + describe "create" do - + it "should" do visit new_referential_path fill_in "Nom", :with => "Test" @@ -48,7 +50,7 @@ describe "Referentials", :type => :feature do end describe "destroy" do - let(:referential) { create(:referential, :organisation => @user.organisation) } + let(:referential) { create(:referential, :organisation => @user.organisation) } it "should remove referential" do visit referential_path(referential) @@ -57,5 +59,5 @@ describe "Referentials", :type => :feature do end end - + end |
