search for: publish_on

Displaying 1 result from an estimated 1 matches for "publish_on".

Did you mean: published_on
2006 Feb 01
3
Test data life cycle confusion
...tant because we don?t want tests to become dependent on the results of previous tests. Well, I''ve been running into a brick wall with some functional tests based off of what the scaffold generator created for me. Here''s a couple snippets: articles.yml: first: id: 1 published: 1 publish_on: 2006-01-24 14:50:30 articles_controller_test.rb: <snip> def test_edit get :edit, :id => 1, :version_id => 1 assert_response :success assert_template ''edit'' assert_not_nil assigns(:article) assert assigns(:article).valid? end def test_destroy assert_not_nil Article....