Sha256: 7ccc6650cf02566f8095b416dfbf13c7ffa92885f343943d80314ee41c3ae712
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
require 'test_helper' module Alondra class ChatPushingTest < ActiveSupport::IntegrationCase self.use_transactional_fixtures = false setup do clean_db Capybara.default_driver = :webkit end teardown do clean_db end test "push chat changes to client" do user = Factory.create :user chat = Factory.create :chat, :name => 'A chat about nothing' login_as user chat_path = chat_path(chat) visit chat_path wait_until(5) do page.has_content? 'A chat about nothing' end chat.update_attributes! :name => 'A chat about everything' sleep(0.5) wait_until(15) do page.has_content? 'A chat about everything' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alondra-0.0.3 | test/integration/push_changes_test.rb |