NoMethodError: undefined method `net'

Hi,

I am just creating a unit test and I am being shown the following error,
has anyon any suggestions to how I can fix this?

  1. Error: test_size_of_attributes(BlogTest):
    NoMethodError: undefined method net' for Blog:Class C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_r ecord/base.rb:1235:inmethod_missing’

Thanks

Dear Mark,

Can you post the test that is failing? Or all the tests if there are
not many?

Regards

Mikel

Mikel wrote:

Dear Mark,

Can you post the test that is failing? Or all the tests if there are
not many?

Regards

Mikel

Hi Mikel,

check word filter works

def test_word_filter

blog = Blog.net(:title => “test_title”,

:raw_content => “test raw content. fuck”)

assert !blog.valid?

end

David R. wrote:

Are you sure you don’t mean “blog = Blog.new(…” ?

doppler

that would be the problem! doh!

cheers

Are you sure you don’t mean “blog = Blog.new(…” ?

doppler

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs