Sha256: e486368eb8b205011fe10775c2a396e9fa0ac0e5ac0d8f919421223d709d966d
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
# encoding: utf-8 describe "Monitor new fields", :js => true do before do @user = User.new :name => "Lucia", :last_name => "Napoli", :email => "lucianapoli@gmail.com", :height => "5' 5\"", :address => "Via Roma 99", :zip => "25123", :country => "2", :receive_email => false, :description => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a lectus et lacus ultrices auctor. Morbi aliquet convallis tincidunt. Praesent enim libero, iaculis at commodo nec, fermentum a dolor. Quisque eget eros id felis lacinia faucibus feugiat et ante. Aenean justo nisi, aliquam vel egestas vel, porta in ligula. Etiam molestie, lacus eget tincidunt accumsan, elit justo rhoncus urna, nec pretium neque mi et lorem. Aliquam posuere, dolor quis pulvinar luctus, felis dolor tincidunt leo, eget pretium orci purus ac nibh. Ut enim sem, suscipit ac elementum vitae, sodales vel sem.", :money => 100 end it "should work when new best_in_place spans are added to the page" do @user.save! visit show_ajax_user_path(@user) sleep(1) #give time to the ajax request to work within("#email") do expect(page).to have_content("lucianapoli@gmail") end bip_text @user, :email, "new@email.com" within("#email") do expect(page).to have_content("new@email.com") end bip_text @user, :email, "new_two@email.com" within("#email") do expect(page).to have_content("new_two@email.com") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
best_in_place-3.0.0 | spec/integration/live_spec.rb |
best_in_place-3.0.0.rc1 | spec/integration/live_spec.rb |