public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
James Smith (author)
Thu May 08 10:50:32 -0700 2008
commit  0ca6f9a34bc9e23cd1f882426d29b887a59b6be9
tree    081d3688967b32533a3e020a7025f8b4ee44e096
parent  9072b487bf45c5e41e33c66b32d94aea84732d1b
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