Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Newbie - Rake Cant Execute Tes...

Replytotopic

Newbie - Rake Cant Execute Test

Posted in Forums : Ask a Rails expert

 
Untitled-1d

Authority 0
Posting Rating 0
Sign in to rate this post

I dont know why it cant execute my rake test.

D:\ruby\tiesto>rake test/unit/kantor_test.rb—trace
(in D:/ruby/tiesto)
  • Invoke test/unit/kantor_test.rb (first_time, not_needed)

In my test/unit/kantor_test.rb

require File.dirname(FILE) + ’/../test_helper’

class KantorTest < Test::Unit::TestCase fixtures :kantors

  1. Replace this with your real tests. def test_pertamax valid_kantor = Kantor.new(:barang=>”pulpen”, :jumlah => 2)

    asser_equal ‘pulpen 2’, valid_kantor.gabungan #assert true

    end
    end

Please helpe me.

Thank you.
Reinhart

 
Profile

Authority 12
Posting Rating 96
Sign in to rate this post

your “asser_equal” should be “assert_equal”

 
Untitled-1d

Authority 0
Posting Rating 0
Sign in to rate this post

I did make assert_equal but the same thing happened. no changes:

D:\ruby\tiesto>rake test/unit/kantor_test.rb—trace
(in D:/ruby/tiesto)
  • Invoke test/unit/kantor_test.rb (first_time, not_needed)

Please help me what happen..

 
Profile

Authority 12
Posting Rating 96
Sign in to rate this post

ah, sorry, just spotted the problem

try ruby test/unit/kantor_test.rb

(not rake)

Replytotopic

Other Recent Topics

Ask a Rails expert : Sanitizing html

Ask a Rails expert : First post, requesting sage perspective

Ask a Rails expert : How to use mephisto

Ask a Rails expert : How to use mephisto

Ask a Rails expert : will_paginate customization problem

Ask a Rails expert : BackgroundRB still wants 'development' environment...?

Ask a Rails expert : activescaffold, sql exception

Ask a Rails expert : Passing non-english chars in query string

Ask a Rails expert : Rails and 2D barcodes

Ask a Rails expert : apache giving proxy error

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel