search for: test_bar

Displaying 3 results from an estimated 3 matches for "test_bar".

Did you mean: test_bad
2006 Mar 22
0
assert_redirected_to behaviour
...> params[:y], :z => params[:z] end you could write just def bar redirect_to :action => ''baz'' end and have all those x, y and z parameters inherited from bar action. So far, rails has that feature available. Then you write a functional test something like this: def test_bar get :bar, :x => 1, :y => 5, :z => 2 assert_redirected_to :action => :baz, :x => 1, :y => 5, :z => 2 end As far as I see, now assert_redirected_to only matches parameters supplied to it with parameters supplied to redirect_to method. I think, that assert should work somet...
2009 Mar 13
1
Something crazy with rake test
...sr/bin/ruby -I"/usr/local/www/foo/vendor/plugins/bar/lib" -I"/usr/local/www/foo/vendor/plugins/bar/lib" -I"/usr/local/www/foo/vendor/plugins/bar/test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/bar_test.rb" editing test_bar.rb and modifying the default "truth" assertion with assert false does not produces any assertion failure since the tests are not run at all It worked yesterday and I only upgraded to rake 0.8.4 then reverted to 0.8.3 Any idea ? -- Posted via http://www.ruby-forum.com/. --~--~---------...
2009 Feb 21
10
Problem with test_truth
hello all, i have a problem with test_truth. require ''test_helper'' class MyDataTest < ActiveSupport::TestCase def test_truth assert true end end this should ok without failures or errors. but it failure: 1) Error: test_truth(MyDataTest): ActiveRecord::StatementInvalid: Mysql::Error: Table ''alldataserver_test.members'' doesn''t exist: DELETE