Sha256: 4facb2cb71c403ad026d123dd3a62e3ad59ea6fac889b6daa2355067f1fe075a
Contents?: true
Size: 989 Bytes
Versions: 5
Compression:
Stored size: 989 Bytes
Contents
# encoding: utf-8 require "spec_helper" describe "JS behaviour", :js => true do before do @user = User.new :name => "Lucia", :last_name => "Napoli", :email => "lucianapoli@gmail.com", :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 page.should have_content("User description") end bip_area @user, :description, "A new description" visit user_path(@user) within("#description") do page.should 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 page.should have_content("I'm so awesome") end end end
Version data entries
5 entries across 5 versions & 1 rubygems