25 lines
408 B
Ruby
25 lines
408 B
Ruby
require "test_helper"
|
|
|
|
class LaradiTest < ActiveSupport::TestCase
|
|
test "it has a version number" do
|
|
assert Laradi::VERSION
|
|
end
|
|
|
|
test "LogicUnit exists" do
|
|
lu = LogicUnit.new
|
|
|
|
assert lu.execute === "It Works"
|
|
end
|
|
|
|
test "It can inject dependencies" do
|
|
lur = LogicUnitReceiver.new
|
|
|
|
result = lur.get_unit
|
|
|
|
assert_not_nil result
|
|
|
|
assert_kind_of(LogicUnit, result)
|
|
end
|
|
|
|
end
|