Changeset 418

Show
Ignore:
Timestamp:
08/17/07 14:02:44 (1 year ago)
Author:
bo..@topfunky.com
Message:

Spec for attr_initialize
README typo corrections and updates closes ticket 125 [Roy Nicholson]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r411 r418  
    1111* archive-tar-minitar 
    1212* rspec 
     13* activerecord (if you want to store sessions in a database) 
    1314 
    1415Then you can build the merb gem from svn trunk like so: 
    1516 
    16   $ sudo gem install mongrel erubis json mime-types archive-tar-minitar rspec --include-dependencies 
     17  $ sudo gem install mongrel erubis json mime-types archive-tar-minitar rspec activerecord --include-dependencies 
    1718  $ svn co http://svn.devjavu.com/merb/trunk merb 
    1819  $ cd merb 
  • trunk/examples/README_EXAMPLES

    r152 r418  
    11I have removed the useless example app from here for now.  
    2 PLease see mrblog for a better sample app: 
     2Please see mrblog for a better sample app: 
    33 
    44svn co http://svn.devjavu.com/merb/mrblog/trunk 
  • trunk/specs/merb/merb_core_ext_spec.rb

    r407 r418  
    373373   
    374374end 
     375 
     376class ClassWithAttrInitialize 
     377  attr_initialize :dog, :muppet 
     378  attr_accessor   :dog, :muppet 
     379end 
     380 
     381describe ClassWithAttrInitialize do 
     382 
     383  it "should initialize with values" do 
     384    c = ClassWithAttrInitialize.new("louie", "bert") 
     385    c.dog.should    == "louie" 
     386    c.muppet.should == "bert" 
     387  end 
     388 
     389end