Sha256: 040e75365c87d3b2084f23b4a950a8b97f5c1d66f06ed572e0b4a10b59cbd2ae

Contents?: true

Size: 1.48 KB

Versions: 21

Compression:

Stored size: 1.48 KB

Contents

require 'rails_helper'
require 'support/fixtures'


RSpec.configure do |c|
#  c.filter = {wip:true}
end

describe 'COORDONNEE', :type => :feature do
   include Fixtures 
  
  
   before(:each) do
     create_members(1)
     @member = @members.first
   end
   
   describe 'création de coordonnées' do
     it 'la page a un titre et un form' do
       visit adherent.new_member_coord_path @member
       expect(page.find('h3').text).to eq("Saisie des coordonnées de #{@member.to_s}")
     end
     
     it 'remplir le form crée la fiche coordonnées' do
       visit adherent.new_member_coord_path @member
       fill_in 'E-mail', with:'joe.dalton@penitencier.us'
       fill_in 'Ville', with:'Oklahoma city'
       expect {click_button 'Enregistrer'}.to change {Adherent::Coord.count}.by(1)
      end
      
     it 'la fiche est bien rattachée au membre' do
       visit adherent.new_member_coord_path @member
       fill_in 'E-mail', with:'joe.dalton@penitencier.us'
       fill_in 'Ville', with:'Oklahoma city'
       click_button 'Enregistrer'
       expect(@member.coord.city).to eq('Oklahoma city')
       expect(@member.coord.mail).to eq('joe.dalton@penitencier.us')
     end
     
    it 'renvoie sur le page new_adhesion' do
      visit adherent.new_member_coord_path @member
       fill_in 'E-mail', with:'joe.dalton@penitencier.us'
       click_button 'Enregistrer'
       expect(page.find('h3').text).to eq("Renouvellement ou nouvelle adhésion pour #{@member.to_s}")
    end
   end
   
end
  

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
adherent-0.3.4 spec/features/coord_spec.rb
adherent-0.3.3 spec/features/coord_spec.rb
adherent-0.3.2 spec/features/coord_spec.rb
adherent-0.3.1 spec/features/coord_spec.rb
adherent-0.3.0 spec/features/coord_spec.rb
adherent-0.2.9 spec/features/coord_spec.rb
adherent-0.2.8 spec/features/coord_spec.rb
adherent-0.2.7 spec/features/coord_spec.rb
adherent-0.2.6 spec/features/coord_spec.rb
adherent-0.2.5 spec/features/coord_spec.rb
adherent-0.2.4 spec/features/coord_spec.rb
adherent-0.2.3 spec/features/coord_spec.rb
adherent-0.2.2.4 spec/features/coord_spec.rb
adherent-0.2.2.3 spec/features/coord_spec.rb
adherent-0.2.2.2 spec/features/coord_spec.rb
adherent-0.2.2.1 spec/features/coord_spec.rb
adherent-0.2.2 spec/features/coord_spec.rb
adherent-0.2.1 spec/features/coord_spec.rb
adherent-0.2.0 spec/features/coord_spec.rb
adherent-0.1.10 spec/features/coord_spec.rb