Пожалуйста, прости мой корнишон
Given I have a module called Hello
And it has a method called world and a class called World
When I include the module in an RSpec spec
And I call the method world
Then it returns "hello world from method"
But when I create a World class
Then I get NameError: uninitialized constant World
module Hello
def world
p "hello world from method"
end
class World
def initialize
p "hello world from class"
end
end
end
describe "hello world" do
include Hello
it "call method" do
world
end
it "call class" do
World.new
end
end