Sha256: 658b4e0e5b1760195b3ee187294b21a55a964cf420ad009bdca26df17a46b038
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
require 'test_helper' class UiTest < ActionController::IntegrationTest fixtures :all test_data do puts "Loading test data in #{self}" user = Factory.create(:user, :login => 'testuser') 5.times do Factory.create(:post, :user => user) end end test "GET /users" do get "/users" assert_response :success assert_equal 1, assigns(:users).count end test "GET /posts" do get '/posts' assert_response :success assert_equal 7, assigns(:posts).count # 5 for user, 2 from fixtures end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
transactionata-0.3.0 | test/rails2/test/integration/ui_test.rb |
transactionata-0.2.0 | test/rails2/test/integration/ui_test.rb |
transactionata-0.1.0 | test/rails2/test/integration/ui_test.rb |