Created
January 10, 2009 04:30
-
-
Save adkron/45380 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'test_helper' | |
class PeopleIntegrationTest < ActionController::IntegrationTest | |
use_transactional_fixtures = false | |
context "context no records" do | |
setup do | |
Person.create!(:name => 'Mike Gaffney') | |
visit(people_path) | |
click_link("Create New") | |
fill_in('Name', :with => "Amos King") | |
click_button('Create') | |
end | |
should 'respond with success' do | |
assert_contain 'Amos King' | |
end | |
should 'have xpath div' do | |
assert_have_xpath '//div' | |
end | |
should 'have selector' do | |
assert_have_selector '#people-content' | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment