Displaying 1 result from an estimated 1 matches for "date_publ".
2006 Jun 08
1
fixtures instance variable naming
...ying my first foray into testing and having trouble with accessing  
the fixture instance variable
built a test for my NewsRelease model.
have a news_releases.yml as a fixture with:
first:
   id: 1
   title: my first release
   body: this is still my first test of a news release
   publish: 0
   date_publication: 2006-06-06 17:28:00
in news_release_test.rb, i have
def setup
     @news_release = NewsRelease.find(1)
end
def test_create
     assert_kind_of NewsRelease, @news_release
     assert_equal @news_release["first"]["id"], @news_release.id
end
and i receive:
"NoMet...