Add test for existence of LogicUnit class
This commit is contained in:
6
test/dummy/app/helpers/LogicUnit.rb
Normal file
6
test/dummy/app/helpers/LogicUnit.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class LogicUnit
|
||||
|
||||
def execute
|
||||
"It Works"
|
||||
end
|
||||
end
|
||||
@@ -4,4 +4,10 @@ class LaradiTest < ActiveSupport::TestCase
|
||||
test "it has a version number" do
|
||||
assert Laradi::VERSION
|
||||
end
|
||||
|
||||
test "LogicUnit exists" do
|
||||
lu = LogicUnit.new
|
||||
|
||||
asset lu.execute === "It Works"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user