diff options
| author | mo k <mo@mokhan.ca> | 2012-03-04 12:38:00 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-03-04 12:38:00 -0700 |
| commit | be9327eea5ecd4e9387d124e2f4bd13b703b40ac (patch) | |
| tree | ad6485b9c0823dae87c4caca0d28c7ca7f91c4a0 | |
| parent | f64328d9f23a6c9c52ef950dcd94d8c38fe466f2 (diff) | |
update all.rb to include all production code
| -rw-r--r-- | spec/unit/all.rb | 1 | ||||
| -rw-r--r-- | spec/unit/domain/greeting.rb | 14 |
2 files changed, 3 insertions, 12 deletions
diff --git a/spec/unit/all.rb b/spec/unit/all.rb index f4ca232..bfe1b60 100644 --- a/spec/unit/all.rb +++ b/spec/unit/all.rb @@ -1,5 +1,6 @@ require "minitest/autorun" require "minitest/spec" +require File.absolute_path(File.dirname(__FILE__)+'/../../app') Dir[File.dirname(__FILE__) + '/**/*.rb'].each do |e| load e unless(e == __FILE__) diff --git a/spec/unit/domain/greeting.rb b/spec/unit/domain/greeting.rb index 2981e96..b8d3410 100644 --- a/spec/unit/domain/greeting.rb +++ b/spec/unit/domain/greeting.rb @@ -1,18 +1,8 @@ - -class Greeting - def say - "hello" - end - def bye - "bye" - end -end - describe Greeting do it "should say hello" do - Greeting.new.say.should == "hello" + Greeting.new.say.must_equal "hello" end it "should say goodbye" do - Greeting.new.bye.should == 'bye' + Greeting.new.bye.must_equal 'bye' end end |
