Changeset 935
- Timestamp:
- 11/10/07 20:55:09 (10 months ago)
- Files:
-
- apps/merki/trunk/app/models/page.rb (modified) (1 diff)
- apps/merki/trunk/spec/models/page_spec.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
apps/merki/trunk/app/models/page.rb
r934 r935 1 1 class Page < DataMapper::Base 2 property :title, :string 2 3 end 3 4 apps/merki/trunk/spec/models/page_spec.rb
r934 r935 15 15 est laborum." 16 16 end 17 18 def textile_text 19 "h1. " 20 end 17 21 end 18 22 19 23 describe Page do 24 include PageSpecHelper 20 25 before(:each) do 21 26 @page = Page.new 22 27 end 23 28 24 it "should be valid" do25 pending "Needs implementation"26 @page.attributes = valid_page_attributes27 @page.should be_valid28 end29 30 29 it "should have a title" do 31 pending "Needs implementation"32 30 @page.title = "My Page" 33 31 @page.title.should == "My Page" … … 42 40 it "should have a body" do 43 41 pending "Needs implementation" 44 45 42 @page.body = lorem_text 46 43 @page.body.should == lorem_text … … 65 62 @page.should_not be_valid 66 63 end 67 64 65 it "should be valid with all attributes" do 66 pending "Needs implementation" 67 @page.attributes = valid_page_attributes 68 @page.should be_valid 69 end 68 70 end
