Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/halorgium/mephisto.git
Search Repo:
francois (author)
Mon Mar 10 20:36:57 -0700 2008
commit  a1407eb22655e040d394c2b34b203d190891eda7
tree    2e680301c13e14008146bd016dbc268622e68d7e
parent  3bbe3ca69a5aa2e4346e62a988edab0b3d9451b8
mephisto / spec / model_stubs.rb
100644 21 lines (17 sloc) 0.853 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ModelStubbing.define_models do
  # only put minimal, core models in here if specs require interaction
  # with lots of models
  
  time 2007, 6, 15
  
  model Site do
    stub :title => "Mephisto", :host => 'test.host', :filter => 'textile_filter', :approve_comments => false,
      :comment_age => 30, :timezone => "America/New_York", :articles_per_page => 15, :permalink_style => ":year/:month/:day/:permalink",
      :tag_path => 'tags', :search_path => 'search', :current_theme_path => 'current'
  end
  
  model User do
    stub :login => 'quentin', :email => 'quentin@example.com', :filter => 'textile_filter', :token => 'quentintoken', :admin => true,
      :salt => '7e3041ebc2fc05a40c60028e2c4901a81035d3cd', :crypted_password => '00742970dc9e6319f8019fd54864d3ea740f04b1'
  end
  
  # model Article do
  # stub :title => 'foobar'
  # end
end