Commit c9fa3c75aef229c8b72f0b6b7060f579816dd44e

Specified our Post model should be valid when new.

Commit diff

.gitignore

 
1test_log
2pkg
3pkg/*
4*.log
5log
6!log*.rb
7*/log
8log/*
9*/log/*
10coverage
11.DS_Store
12*.pid
toggle raw diff

log/merb_test.log

 
1Wed, 16 Apr 2008 06:05:40 GMT ~ info ~ Logfile created
2 ~ Loaded TEST Environment...
3 ~ loading gem 'merb_activerecord' from ...
4 ~ loading gem 'merb_helpers' from ...
5 ~ loading gem 'activerecord' from ...
6 ~ Connecting to database...
7 ~ Compiling routes...
8 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
9 ~ Loaded TEST Environment...
10 ~ loading gem 'merb_activerecord' from spec/models/../spec_helper.rb:5 ...
11 ~ loading gem 'merb_helpers' from spec/models/../spec_helper.rb:5 ...
12 ~ loading gem 'activerecord' from spec/models/../spec_helper.rb:5 ...
13 ~ Connecting to database...
14 ~ Compiling routes...
15 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
16 ~ Loaded TEST Environment...
17 ~ loading gem 'merb_activerecord' from ...
18 ~ loading gem 'merb_helpers' from ...
19 ~ loading gem 'activerecord' from ...
20 ~ Connecting to database...
21 ~ Compiling routes...
22 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
23 ~ SQL (0.000254) SET NAMES 'utf8'
24 ~ SQL (0.000108) SET SQL_AUTO_IS_NULL=0
25 ~ Post Columns (0.000000) Mysql::Error: Table 'slapp_test.posts' doesn't exist: SHOW FIELDS FROM `posts`
26 ~ Loaded TEST Environment...
27 ~ loading gem 'merb_activerecord' from ...
28 ~ loading gem 'merb_helpers' from ...
29 ~ loading gem 'activerecord' from ...
30 ~ Connecting to database...
31 ~ Compiling routes...
32 ~ Using 'share-nothing' cookie sessions (4kb limit per client)
33 ~ SQL (0.000333) SET NAMES 'utf8'
34 ~ SQL (0.000126) SET SQL_AUTO_IS_NULL=0
35 ~ Post Columns (0.002168) SHOW FIELDS FROM `posts`
toggle raw diff

spec/models/post_spec.rb

 
22
33describe Post do
44
5 it "should have specs"
5 it "should be valid when new" do
6 post = Post.new
7 post.should be_valid
8 end
69
710end
toggle raw diff