Integration of social networks is very common in every application. We have many gems are available for doing integration. But testing this social integration is complicated task. Using capybara with cucumber we can easily test this similar to the normal UI testing through capybara. Step 1: Set up default driver to selenium. Step 2: Generate … Continue reading Learn How To Test Social Networks Using Capybara, Cucumber Rails, & Selenium
Tag: facebook
How Twitter Share & Facebook Like Buttons Work For HAML-Rails & HTML/erb
>Twitter share and facebook like button for html/erb <div class='spread'> <div class='twshare left'> <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="funonrails">Tweet</a>http://platform.twitter.com/widgets.js </div> <fb:like href="" layout="button_count" show_faces="false" width="450" font=""></fb:like></div>Twitter share and facebook like button for haml .spread .twshare.left %a.twitter-share-button.left{"data-count" => "horizontal", "data-via" => "fuonrails", :href => "http://twitter.com/share"} Tweet %script{:src => "http://platform.twitter.com/widgets.js", :type => "text/javascript"} .fshare.left{:style => 'padding-left: 0px; … Continue reading How Twitter Share & Facebook Like Buttons Work For HAML-Rails & HTML/erb
Multiple Applications with Devise, Omniauth and Single Sign On
The best way to scale an application is to split the application business logic into different inter-communicable components. However, authenticating, authorizing and security raise concerns. OAuth comes to the rescue - and like a knight in shining armour - omniauth steals the show. Omniauth is an awesome gem that allows you to authenticate using Open-Id … Continue reading Multiple Applications with Devise, Omniauth and Single Sign On