Sha256: 2eca61e4b075f89e3df75685b6cb554f599b6add00815b8d103bc177662e2b05
Contents?: true
Size: 936 Bytes
Versions: 5
Compression:
Stored size: 936 Bytes
Contents
# encoding: utf-8 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) expect(find('#description')).to have_content('User description') bip_area @user, :description, "A new description" visit user_path(@user) expect(find('#description')).to have_content('A new description') 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) expect(find('#dw_description')).to have_content("I'm so awesome") end end
Version data entries
5 entries across 5 versions & 1 rubygems