IronRuby: Tell Me. What Do You See Here?
01 |
require File.dirname(__FILE__) + '/../build/Debug/Tpods.Core.dll'
|
02 |
require 'rubygems'
|
03 |
require 'spec'
|
04 |
05 |
describe "The Poor Developer's Object Datastore" do
|
06 |
it "should have 0 objects in the datastore" do
|
07 |
@repository = PersonRepository.new
|
08 |
@repository.Count.should == 0
|
09 |
end
|
10 |
end |
11 |
12 |
class Person
|
13 |
attr_accessor :first_name, :last_name
|
14 |
end |
15 |
16 |
class PersonRepository
|
17 |
include Tpods::Core::IRepository[Person]
|
18 |
def Count
|
19 |
0
|
20 |
end
|
21 |
end |
Me? I see a happy sun shining down upon me on a warn summer’s day.