Module: Samples

Defined in:
lib/abstract_interface/old/model_stub.rb

Defined Under Namespace

Classes: Errors, ThemeSample

Class Method Summary collapse

Class Method Details

.build_stub!Object



12
13
14
15
16
17
18
# File 'lib/abstract_interface/old/model_stub.rb', line 12

def self.build_stub!
  s = ThemeSample.new :name => "Some Name", :active => true, :body => "Some text"
  s.errors = Errors.new \
    :base => ["Base Error Description", "Base Error Description 2"],
	  :name => ["Name Error Description 1", "Name Error Description 2"]
  s
end