Created
November 11, 2011 01:48
-
-
Save gonzedge/1356909 to your computer and use it in GitHub Desktop.
Rails 3.1 and the assert_select_jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($('#container').is(':not(:visible)')) $('#container').show('blind', 1000); | |
$('#container').html('<%= render @content %>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var container = $('#container'); | |
if(container.is(':not(:visible)')) container.show('blind', 1000); | |
container.html('<%= render @content %>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test 'the container html is replaced when rendered' do | |
assert_select_jquery :html, '#container' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment