Sha256: e697b5b8a5163595fc382d7e2183d818e048bf2bd4907ee96658732e81e9f0f8
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# encoding: utf-8 require 'rails_helper' describe "JS behaviour", :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 => "User description" end it "should be able to use bip_text to update a text area" do @user.save! visit user_path(@user) within("#description") do expect(page).to have_content("User description") end bip_area @user, :description, "A new description" visit user_path(@user) within("#description") do expect(page).to have_content("A new description") end end it "should be able to use a bip_text with :display_with option" do @user.description = "I'm so awesome" @user.save! visit user_path(@user) within("#dw_description") do expect(page).to have_content("I'm so awesome") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
best_in_place-3.0.0 | spec/integration/text_area_spec.rb |
best_in_place-3.0.0.rc1 | spec/integration/text_area_spec.rb |