Sha256: 29fc1c0c8000faa162bf589f4b54253086c6dcea71cdc2977a83514783360d0a
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
require 'test_helper' class UiTest < ActionDispatch::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/rails3/test/integration/ui_test.rb |
transactionata-0.2.0 | test/rails3/test/integration/ui_test.rb |
transactionata-0.1.0 | test/rails3/test/integration/ui_test.rb |